Write a checkpoint: gather to root, write the global file on rank 0, agree outcome across ranks, update the latest_checkpoint_2d pointer file.
absent is written as 0, matching a fresh (non-restarted) run's value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(solver_state_2d_t), | intent(in) | :: | state | |||
| character(len=*), | intent(in) | :: | base | |||
| real(kind=wp), | intent(in) | :: | t | |||
| integer, | intent(in) | :: | iter | |||
| logical, | intent(out), | optional | :: | is_ok | ||
| character(len=*), | intent(out), | optional | :: | message | ||
| character(len=*), | intent(out), | optional | :: | written_file |
Path of the file actually written ( |
|
| real(kind=wp), | intent(in), | optional | :: | t_comp |
Optional Kahan compensation term for |