Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(checkpoint_config_t), | public | :: | checkpoint_cfg | ||||
type(adios2_writer_t), | public | :: | adios2_writer | ||||
integer, | public | :: | last_checkpoint_step | = | -1 | ||
integer, | public, | dimension(3) | :: | output_stride | = | [2, 2, 2] |
Spatial stride for snapshot output |
integer, | public | :: | output_precision | = | dp |
Output precision for snapshot |
|
real(kind=dp), | public, | dimension(:, :, :), allocatable | :: | strided_buffer | |||
real(kind=dp), | public, | dimension(:, :, :), allocatable | :: | coords_x | |||
real(kind=dp), | public, | dimension(:, :, :), allocatable | :: | coords_y | |||
real(kind=dp), | public, | dimension(:, :, :), allocatable | :: | coords_z | |||
integer(kind=i8), | public, | dimension(3) | :: | last_shape_dims | = | 0 | |
integer(kind=i8), | public, | dimension(3) | :: | last_strided_shape | = | 0 |
Initialise checkpoint manager with a reference to an ADIOS2 writer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(checkpoint_manager_adios2_t), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | comm |
Check if a restart is needed and handle it
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(checkpoint_manager_adios2_t), | intent(inout) | :: | self | |||
class(solver_t), | intent(inout) | :: | solver | |||
integer, | intent(in), | optional | :: | comm |
Method to handle checkpoint and snapshot writing at a given timestep
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(checkpoint_manager_adios2_t), | intent(inout) | :: | self | |||
class(solver_t), | intent(in) | :: | solver | |||
integer, | intent(in) | :: | timestep | |||
integer, | intent(in), | optional | :: | comm |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(checkpoint_manager_adios2_t), | intent(inout) | :: | self |