mHM
The mesoscale Hydrological Model
|
common restart tools More...
Data Types | |
interface | check_consistency_element |
check consistency of two given items More... | |
Functions/Subroutines | |
subroutine, public | write_grid_info (grid_in, level_name, nc) |
write restart files for each domain | |
subroutine, public | read_grid_info (infile, level_name, new_grid) |
reads configuration apart from Level 11 configuration from a restart directory | |
subroutine, public | read_nlai_and_check_dims (idomain, infile) |
read nubmer of LAI time steps and check dimension configurations read from restart file | |
subroutine | check_dimension_consistency (idomain, nsoilhorizons_temp, soilhorizonboundaries_temp, nlais_temp, laiboundaries_temp, nlandcoverperiods_temp, landcoverperiodboundaries_temp) |
checks dimension configurations read from restart file | |
subroutine | check_consistency_element_dp (item1, item2, name, idomain) |
check consistency of two given items | |
subroutine | check_consistency_element_i4 (item1, item2, name, idomain) |
check consistency of two given items | |
common restart tools
Routines to deal with grid infos for restart files
COPYING
and COPYING.LESSER
provided with this software. The complete GNU license text can also be found at http://www.gnu.org/licenses/.
|
private |
check consistency of two given items
Definition at line 378 of file mo_common_restart.f90.
|
private |
check consistency of two given items
Definition at line 397 of file mo_common_restart.f90.
|
private |
checks dimension configurations read from restart file
Definition at line 333 of file mo_common_restart.f90.
References mo_mpr_global_variables::horizondepth_mhm, mo_mpr_global_variables::laiboundaries, mo_common_variables::lc_year_end, mo_common_variables::lc_year_start, mo_mpr_global_variables::nlai, mo_common_variables::nlcoverscene, and mo_mpr_global_variables::nsoilhorizons_mhm.
Referenced by read_nlai_and_check_dims().
subroutine, public mo_common_restart::read_grid_info | ( | character(256), intent(in) | infile, |
character(*), intent(in) | level_name, | ||
type(grid), intent(inout) | new_grid | ||
) |
reads configuration apart from Level 11 configuration from a restart directory
read configuration variables from a given restart directory and initializes all configuration variables, that are initialized in the subroutine initialise, contained in module mo_startup.
[in] | infile | Input Path including trailing slash |
[in] | level_name | level_name (id) |
[in,out] | new_grid | grid to save information to |
Definition at line 141 of file mo_common_restart.f90.
Referenced by mo_startup::mhm_initialize(), and mo_mrm_init::mrm_init().
subroutine, public mo_common_restart::read_nlai_and_check_dims | ( | integer(i4), intent(in) | idomain, |
character(256), intent(in) | infile | ||
) |
read nubmer of LAI time steps and check dimension configurations read from restart file
[in] | idomain | domain counter (not ID) |
[in] | infile | Input Path including trailing slash |
Definition at line 222 of file mo_common_restart.f90.
References check_dimension_consistency(), mo_mpr_global_variables::laiboundaries, mo_common_constants::laivarname, mo_common_constants::landcoverperiodsvarname, mo_mpr_global_variables::nlai, mo_common_mhm_mrm_variables::read_old_style_restart_bounds, and mo_common_constants::soilhorizonsvarname.
Referenced by mo_startup::mhm_initialize().
subroutine, public mo_common_restart::write_grid_info | ( | type(grid), intent(in) | grid_in, |
character(*), intent(in) | level_name, | ||
type(ncdataset), intent(inout) | nc | ||
) |
write restart files for each domain
write restart files for each domain. For each domain three restart files are written. These are xxx_states.nc, xxx_L11_config.nc, and xxx_config.nc (xxx being the three digit domain index). If a variable is added here, it should also be added in the read restart routines below.
[in] | grid_in | level to be written |
[in] | level_name | level_id |
[in,out] | nc | NcDataset to write information to |
Definition at line 58 of file mo_common_restart.f90.
References mo_common_constants::nodata_dp, and mo_common_constants::nodata_i4.
Referenced by mo_mrm_restart::mrm_write_restart(), mo_mpr_restart::write_mpr_restart_files(), and mo_restart::write_restart_files().