accepted batch 境界で二重化した定期チェックポイントを保存・解決する。
設定した stride の accepted batch で、非active slotへ完全な再開状態を書いてからindexを切り替える。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(app_config), | intent(in) | :: | app | |||
| type(mesh_type), | intent(in) | :: | mesh | |||
| type(sim_stats), | intent(in) | :: | stats | |||
| type(injection_state), | intent(in), | optional | :: | state | ||
| type(mpi_context), | intent(in) | :: | mpi | |||
| type(charge_ledger_type), | intent(in), | optional | :: | charge_ledger |
base directory直下の最終出力と両定期slotを比較し、batch数が新しい完全checkpointを返す。 indexは同batchのslotを選ぶtie-breakにだけ使う。欠落、破損、古いindexは complete manifestを持つload可能なslotの回収を妨げない。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | base_dir | |||
| character(len=*), | intent(out) | :: | checkpoint_dir |