Write a checkpoint file for the current solver state.
The file is written as an unformatted stream binary. After a successful
write, the plain text file latest_checkpoint is updated to the new
file's path.
absent is written as 0, matching a fresh (non-restarted) run's value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(solver_state_t), | intent(in) | :: | state |
Current solver state (must have ub allocated). |
||
| character(len=*), | intent(in) | :: | base |
Base name (e.g. 'checkpoint'); file = base_NNNNNN.bin. |
||
| real(kind=wp), | intent(in) | :: | t |
Current simulation time [s]. |
||
| integer, | intent(in) | :: | iter |
Current iteration number. |
||
| 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 (e.g. |
|
| real(kind=wp), | intent(in), | optional | :: | t_comp |
Optional Kahan compensation term for |