| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(checkpoint_config_t), | public | :: | config | ||||
| integer, | public, | dimension(3) | :: | output_stride | = | [1, 1, 1] | |
| type(field_buffer_map_t), | public, | allocatable | :: | field_buffers(:) | |||
| integer(kind=i8), | public, | dimension(3) | :: | last_shape_dims | = | 0 | |
| integer, | public, | dimension(3) | :: | last_stride_factors | = | 0 | |
| integer(kind=i8), | public, | dimension(3) | :: | last_output_shape | = | 0 | |
| character(len=:), | public, | allocatable | :: | vtk_xml | |||
| logical, | public | :: | is_snapshot_file_open | = | .false. | ||
| type(writer_session_t), | public | :: | snapshot_writer | ||||
| logical, | public | :: | convert_to_sp | = | .false. |
Flag for single precision snapshots Steps of an existing file kept on restart; negative starts a new file |
|
| integer, | public | :: | append_after_steps | = | -1 |
Iteration the run restarted from, and the layout of the existing file |
|
| integer, | public | :: | restart_iter | = | 0 | ||
| character(len=:), | public, | allocatable | :: | restart_vtk_xml |
Initialise snapshot manager
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(snapshot_manager_t), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | comm |
Prepare to continue the snapshot file of the run being restarted. Steps up to the restart time are kept and later ones (written past the checkpoint) are dropped, so the restarted run appends without duplicating them, whatever snapshot frequency wrote the file. The file's layout is kept so the first snapshot can check it still matches the output settings.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(snapshot_manager_t), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | restart_iter | |||
| real(kind=dp), | intent(in) | :: | dt | |||
| integer, | intent(in) | :: | comm |
Handle snapshot writing at a given timestep
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(snapshot_manager_t), | intent(inout) | :: | self | |||
| class(solver_t), | intent(in) | :: | solver | |||
| integer, | intent(in) | :: | timestep | |||
| integer, | intent(in), | optional | :: | comm |
Clean up snapshot manager
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(snapshot_manager_t), | intent(inout) | :: | self |