| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(checkpoint_config_t), | public | :: | config | ||||
| integer, | public | :: | last_checkpoint_step | = | -1 | ||
| integer, | public, | dimension(3) | :: | full_resolution | = | [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 |
Initialise checkpoint manager
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_manager_t), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | comm |
Handle restart from checkpoint
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_manager_t), | intent(inout) | :: | self | |||
| class(solver_t), | intent(inout) | :: | solver | |||
| integer, | intent(in), | optional | :: | comm |
Handle checkpoint writing at a given timestep
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_manager_t), | intent(inout) | :: | self | |||
| class(solver_t), | intent(in) | :: | solver | |||
| integer, | intent(in) | :: | timestep | |||
| integer, | intent(in), | optional | :: | comm |
Check if this is a restart run
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_manager_t), | intent(in) | :: | self |
Clean up checkpoint manager
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_manager_t), | intent(inout) | :: | self |