Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(checkpoint_config_t), | public | :: | checkpoint_cfg | ||||
type(adios2_writer_t), | public | :: | adios2_writer |
Writer for checkpoints |
|||
type(adios2_writer_t), | public | :: | snapshot_writer |
Writer for snapshots |
|||
integer, | public | :: | last_checkpoint_step | = | -1 | ||
integer, | public, | dimension(3) | :: | output_stride | = | [1, 1, 1] |
Stride factors for snapshots (default: full resolution) |
integer, | public, | dimension(3) | :: | full_resolution | = | [1, 1, 1] |
Full resolution factors for checkpoints (no downsampling) |
real(kind=dp), | public, | dimension(:, :, :), allocatable | :: | output_buffer |
Fallback buffer for extra fields |
||
type(field_buffer_map_t), | public, | allocatable | :: | field_buffers(:) |
Dynamic field buffer mapping for true async I/O |
||
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, | public, | dimension(3) | :: | last_stride_factors | = | 0 | |
integer(kind=i8), | public, | dimension(3) | :: | last_output_shape | = | 0 | |
character(len=4096), | public | :: | vtk_xml | = | "" |
VTK XML string for ParaView compatibility |
|
type(adios2_file_t), | public | :: | snapshot_file |
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 |