MONC
|
Reads the IO server state that was stored in a NetCDF checkpoint file. More...
Data Types | |
interface | nc_get_vara_long |
ISO C binding for NetCDF get long scalar variable, required for retrieving long variables. More... | |
interface | nc_get_vars_text |
ISO C binding for NetCDF get text vars, required for 64 bit start, count & stride. More... | |
interface | nc_inq_dim |
ISO C binding for NetCDF inquire dimension, required for 64 bit dimension length. More... | |
interface | writer_field_manager_unserialise_state |
Functions/Subroutines | |
subroutine, public | read_io_server_configuration (checkpoint_filename, io_xml_configuration, io_communicator_arg) |
Reads the IO server configuration, which is the XML configuration initially run with and stored in the checkpoint. Note that this will open, read the XML in and then close the file. More... | |
subroutine, public | reactivate_writer_federator_state (io_configuration, writer_entries, time_points) |
Reactivates the writer federator and everything beneath it (i.e. just not the writer field manager.) For memory reasons this explicitly reopens the checkpoint file, will read each individual byte code entry in & repackage before deallocating memory and moving onto the next entry. The file is then closed. More... | |
subroutine, public | reactivate_writer_field_manager_state (io_configuration, unserialise_writer_field_manager) |
Reactivates the writer field manager state from the checkpoint file, for memory reasons this will open the file, read in and deserialise the byte code before closing it. More... | |
subroutine | get_io_server_configuration (ncid, io_xml_configuration) |
Retrieves the IO server XML configuration from the checkpoint file. More... | |
subroutine | get_io_server_serialised_bytes (ncid, number_io_server, my_io_server_rank, base_key, raw_bytes) |
Retrieves some IO server serialised bytes which will make up the state of a specific facet. Note that this uses the ISO C bindings in order to support 64 bit starts, counts & strides along with 64 bit scalar long variable fields. More... | |
subroutine | restart_writer_state_from_checkpoint (writer_entries, raw_bytes) |
Restarts the writer state from a specific checkpoint byte data chunk of memory. More... | |
subroutine | restart_writer_state_timepoints (time_points, raw_bytes) |
Restarts the writer state timepoints held in the writer federator. More... | |
subroutine | restart_timeaveraged_state_from_checkpoint (raw_bytes) |
Will restart the time averaged manipulation state from the checkpoint file. More... | |
subroutine | restart_instantaneous_state_from_checkpoint (raw_bytes) |
Will restart the instantaneous manipulation state from the checkpoint file. More... | |
subroutine | restart_writer_field_manager_from_checkpoint (unserialise_writer_field_manager, raw_bytes) |
Will restart the field manager state from the checkpoint file. More... | |
Reads the IO server state that was stored in a NetCDF checkpoint file.
|
private |
Retrieves the IO server XML configuration from the checkpoint file.
ncid | The NetCDF checkpoint file ID |
io_xml_configuration | XML configuration is read from the checkpoint and placed into here |
Definition at line 170 of file io_state_reader.F90.
|
private |
Retrieves some IO server serialised bytes which will make up the state of a specific facet. Note that this uses the ISO C bindings in order to support 64 bit starts, counts & strides along with 64 bit scalar long variable fields.
ncid | The NetCDF checkpoint file ID |
number_io_server | The number of IO servers |
my_io_server_rank | My IO server rank |
base_key | The base look up key to retrieve the state which is stored in the file |
raw_bytes | The retrieved raw bytes as they sit in the file, this is allocated to hold the required data |
Definition at line 194 of file io_state_reader.F90.
subroutine, public io_server_state_reader_mod::reactivate_writer_federator_state | ( | type(io_configuration_type), intent(inout) | io_configuration, |
type(writer_type), dimension(:) | writer_entries, | ||
type(hashmap_type), intent(inout), volatile | time_points | ||
) |
Reactivates the writer federator and everything beneath it (i.e. just not the writer field manager.) For memory reasons this explicitly reopens the checkpoint file, will read each individual byte code entry in & repackage before deallocating memory and moving onto the next entry. The file is then closed.
io_configuration | The IO server configuration |
writer_entries | The configured but empty writer entries to unpack the state into |
time_points | Time points to unpack the state into |
Definition at line 106 of file io_state_reader.F90.
subroutine, public io_server_state_reader_mod::reactivate_writer_field_manager_state | ( | type(io_configuration_type), intent(inout) | io_configuration, |
procedure(writer_field_manager_unserialise_state) | unserialise_writer_field_manager | ||
) |
Reactivates the writer field manager state from the checkpoint file, for memory reasons this will open the file, read in and deserialise the byte code before closing it.
io_configuration | IO server configuration |
unserialise_writer_field_manager | Procedure pointer to the unserialisation for the writer field manager |
Definition at line 149 of file io_state_reader.F90.
subroutine, public io_server_state_reader_mod::read_io_server_configuration | ( | character(len=string_length), intent(in) | checkpoint_filename, |
character, dimension(:), intent(inout), allocatable | io_xml_configuration, | ||
integer, intent(in) | io_communicator_arg | ||
) |
Reads the IO server configuration, which is the XML configuration initially run with and stored in the checkpoint. Note that this will open, read the XML in and then close the file.
checkpoint_filename | The checkpoint filename to open and read from |
io_xml_configuration | XML configuration is read from the checkpoint and placed into here |
io_communicator_arg | The MPI IO server communicator |
Definition at line 72 of file io_state_reader.F90.
|
private |
Will restart the instantaneous manipulation state from the checkpoint file.
raw_byte | The serialised byte state to unpackage and restart from |
Definition at line 313 of file io_state_reader.F90.
|
private |
Will restart the time averaged manipulation state from the checkpoint file.
raw_byte | The serialised byte state to unpackage and restart from |
Definition at line 301 of file io_state_reader.F90.
|
private |
Will restart the field manager state from the checkpoint file.
unserialise_writer_field_manager | The unserialise field manager procedure, done this way due to module ordering |
raw_byte | The serialised byte state to unpackage and restart from |
Definition at line 326 of file io_state_reader.F90.
|
private |
Restarts the writer state from a specific checkpoint byte data chunk of memory.
writer_entries | The array of writer entries to fill in |
raw_byte | The serialised byte state to unpackage and restart from |
Definition at line 252 of file io_state_reader.F90.
|
private |
Restarts the writer state timepoints held in the writer federator.
time_points | The timepoints hashmap which is filled in from the serialised version |
raw_byte | The serialised byte state to unpackage and restart from |
Definition at line 279 of file io_state_reader.F90.