tem_restart_type Derived Type

type, public :: tem_restart_type

The restart type defining everything related to the disk input/output


Components

Type Visibility Attributes Name Initial
type(tem_comm_env_type), public :: comm

communicator for the processes participating in this restart (might be only a subset of the global communicator)

integer, public :: nChunkElems

actual number of elements in the current chunk (= chunkSize or

type(tem_file_layout_type), public :: read_file

Description of the data layout to use when reading a file.

type(tem_file_layout_type), public :: write_file

Description of the data layout to use when writing a file.

type(tem_restartControl_type), public :: controller

Control the behavior of the restart, like at which point in time etc.

type(tem_restartHeader_type), public :: header

Define quantities like the prefix, the mesh and the timestamp

integer, public :: binaryUnit

unit integer to write binary data to

type(tem_timeformatter_type), public :: timeform

Formatter for the timestamps to be used in file names

type(tem_varMap_type), public :: varMap

name and position of variables in global variable system

number of scalars of variables in varPos

integer, public :: nScalars
integer, public :: solSpec_unit = -1

scratch file unit contains solver specific info in dump in restart header This file should contain the information in form of a Lua script.

type(tem_time_type), public :: lastWritten

The time when the last restart file was written.


Source Code

  type tem_restart_type
    !> communicator for the processes participating in this restart (might be
    !! only a subset of the global communicator)
    type(tem_comm_env_type) :: comm
    !> actual number of elements in the current chunk (= chunkSize or
    ! tree%nElems-(nChunks-1)*ChunkSize)
    integer :: nChunkElems

    !> Description of the data layout to use when reading a file.
    type(tem_file_layout_type) :: read_file

    !> Description of the data layout to use when writing a file.
    type(tem_file_layout_type) :: write_file

    !> Control the behavior of the restart, like at which point in time etc.
    type(tem_restartControl_type) :: controller
    !> Define quantities like the prefix, the mesh and the timestamp
    type(tem_restartHeader_type)  :: header
    !> unit integer to write binary data to
    integer :: binaryUnit
    !> Formatter for the timestamps to be used in file names
    type(tem_timeformatter_type) :: timeform
    !> name and position of variables in global variable system
    type(tem_varMap_type) :: varMap
    !!> number of scalars of variables in varPos
    integer :: nScalars
    !> scratch file unit contains solver specific info in dump in restart header
    !! This file should contain the information in form of a Lua script.
    integer :: solSpec_unit = -1
    !> The time when the last restart file was written.
    type(tem_time_type) :: lastWritten
  end type tem_restart_type