MONC
Modules | Functions/Subroutines
readcheckpoint.F90 File Reference

Go to the source code of this file.

Modules

module  checkpointer_read_checkpoint_mod
 Will read in a NetCDF checkpoint file and initialise the model state_mod based upon this.
 

Functions/Subroutines

subroutine, public checkpointer_read_checkpoint_mod::read_checkpoint_file (current_state, filename)
 Reads in a NetCDF checkpoint file and uses this to initialise the model. More...
 
subroutine checkpointer_read_checkpoint_mod::decompose_grid (current_state)
 Calls out to the parallel decomposition strategy to decompose the grid based upon the configuration read and number of processes. More...
 
subroutine checkpointer_read_checkpoint_mod::initalise_source_and_sav_fields (current_state)
 Initialises the source and sav (for u,v,w) fields for allocated prognostics. More...
 
subroutine checkpointer_read_checkpoint_mod::load_misc (current_state, ncid)
 Loads in misc data from the checkpoint file. More...
 
character(len=:) function, allocatable, target checkpointer_read_checkpoint_mod::read_specific_global_attribute (ncid, key)
 Will read a global attribute from the checkpoint file - note that it allocates string memory here so the caller should deallocate this to avoid memory leaks. More...
 
subroutine checkpointer_read_checkpoint_mod::load_all_fields (current_state, ncid)
 Reads in and initialises all prognostic fields. It will check the NetCDF checkpoint file and depending upon what data is in the file then it will set the corresponding fields up which in essence determines whether it has 1, 2 or 3D fields. This also supports 1, 2 or 3D grids_mod which will set any missing grid dimensions to be 1. More...
 
logical function checkpointer_read_checkpoint_mod::does_field_exist (ncid, variable_key)
 Determines whether a variable (field) exists within the NetCDF checkpoint file @ncid The NetCDF file id @variable_key The NetCDF variable key we are looking up. More...
 
subroutine checkpointer_read_checkpoint_mod::load_q_indices (ncid)
 Loads the Q indices (if they exist) into the model Q index register. More...
 
integer function checkpointer_read_checkpoint_mod::get_number_q_indices (ncid)
 Retrieve sthe number of Q indice entries in the NetCDF. This is optional, so may return 0. More...
 
subroutine checkpointer_read_checkpoint_mod::load_single_3d_field (ncid, local_grid, field, z_grid, y_grid, x_grid, variable_key, multi_process, fourth_dim_loc)
 Loads in and initialises a single 3D prognostic field. Even if the model is being run in 1 or 2D, the fields are still stored in 3D with the missing dimension sizes being set to one. More...
 
subroutine checkpointer_read_checkpoint_mod::load_global_grid (current_state, ncid, z_dim, y_dim, x_dim, z_found, y_found, x_found)
 Reads in and initialises the primal grid from the NetCDF checkpoint and will handle 1, 2 or 3D runs. More...
 
subroutine checkpointer_read_checkpoint_mod::load_mean_profiles (current_state, ncid, z_dim_id)
 
subroutine checkpointer_read_checkpoint_mod::load_pdf_profiles (current_state, ncid, z_dim_id)
 
subroutine checkpointer_read_checkpoint_mod::define_vertical_levels (ncid, current_state, z_key, z_dim_id)
 Defines the vertical levels of the grid. This is both the grid points and corresponding height for each point in metres. More...
 
subroutine checkpointer_read_checkpoint_mod::read_dimension_of_grid (ncid, grid, variable_key, dimension, dimension_id)
 Reads a specific dimension of the grid from the NetCDF and sets this up in the state_mod. More...
 
subroutine checkpointer_read_checkpoint_mod::read_single_variable (ncid, key, int_data, real_data, real_data_1d, real_data_1d_double, real_data_2d_double, real_data_3d, integer_data_1d, start, count, map)
 Reads in a single variable and sets the values of the data based upon this. Handles reading in and setting vectors of 1 or 3D reals and 1d integers. More...
 
subroutine checkpointer_read_checkpoint_mod::read_dimensions (ncid, z_dim, y_dim, x_dim, z_found, y_found, x_found)
 Will read in the dimension sizes from the NetCDF file along with whether the z, y and x dimensions have been found. If any have not been found then this corresponds to running the model with 2 or 1D grids_mod. More...