snapshot_manager_t Derived Type

type, public :: snapshot_manager_t


Inherits

type~~snapshot_manager_t~~InheritsGraph type~snapshot_manager_t snapshot_manager_t type~checkpoint_config_t checkpoint_config_t type~snapshot_manager_t->type~checkpoint_config_t config type~field_buffer_map_t field_buffer_map_t type~snapshot_manager_t->type~field_buffer_map_t field_buffers type~base_config_t base_config_t type~checkpoint_config_t->type~base_config_t

Inherited by

type~~snapshot_manager_t~~InheritedByGraph type~snapshot_manager_t snapshot_manager_t type~io_manager_t io_manager_t type~io_manager_t->type~snapshot_manager_t snapshot_mgr type~base_case_t base_case_t type~base_case_t->type~io_manager_t checkpoint_mgr type~case_channel_t case_channel_t type~case_channel_t->type~base_case_t type~case_generic_t case_generic_t type~case_generic_t->type~base_case_t type~case_tgv_t case_tgv_t type~case_tgv_t->type~base_case_t

Components

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=4096), public :: vtk_xml = ""

Type-Bound Procedures

procedure, public :: init

  • private subroutine init(self, comm)

    Initialise snapshot manager

    Arguments

    Type IntentOptional Attributes Name
    class(snapshot_manager_t), intent(inout) :: self
    integer, intent(in) :: comm

procedure, public :: handle_snapshot_step

  • private subroutine handle_snapshot_step(self, solver, timestep, comm)

    Handle snapshot writing at a given timestep

    Arguments

    Type IntentOptional Attributes Name
    class(snapshot_manager_t), intent(inout) :: self
    class(solver_t), intent(in) :: solver
    integer, intent(in) :: timestep
    integer, intent(in), optional :: comm

procedure, public :: finalise

  • private subroutine finalise(self)

    Clean up snapshot manager

    Arguments

    Type IntentOptional Attributes Name
    class(snapshot_manager_t), intent(inout) :: self