mHM
The mesoscale Hydrological Model
|
Restart routines. More...
Functions/Subroutines | |
subroutine, public | mrm_write_restart (idomain, domainid, outfile) |
write routing states and configuration | |
subroutine, public | mrm_read_restart_states (idomain, domainid, infile) |
read routing states | |
subroutine, public | mrm_read_restart_config (idomain, domainid, infile) |
reads Level 11 configuration from a restart directory | |
Restart routines.
This module contains the subroutines for reading and writing routing related variables to file.
COPYING
and COPYING.LESSER
provided with this software. The complete GNU license text can also be found at http://www.gnu.org/licenses/. subroutine, public mo_mrm_restart::mrm_read_restart_config | ( | integer(i4), intent(in) | idomain, |
integer(i4), intent(in) | domainid, | ||
character(256), intent(in) | infile | ||
) |
reads Level 11 configuration from a restart directory
read Level 11 configuration variables from a given restart directory and initializes all Level 11 configuration variables, that are initialized in L11_variable_init, contained in module mo_startup.
[in] | integer(i4) :: iDomain | number of Domain |
[in] | character(256) :: InFile | Input Path including trailing slash |
Definition at line 602 of file mo_mrm_restart.f90.
References mo_mrm_global_variables::domain_mrm, mo_common_variables::domainmeta, mo_mrm_global_variables::l0_facc, mo_mrm_global_variables::l0_fdir, mo_mpr_global_variables::l0_slope, mo_mrm_global_variables::l0_streamnet, mo_mrm_global_variables::l11_afloodplain, mo_mrm_global_variables::l11_colout, mo_mrm_global_variables::l11_facc, mo_mrm_global_variables::l11_fcol, mo_mrm_global_variables::l11_fdir, mo_mrm_global_variables::l11_fromn, mo_mrm_global_variables::l11_frow, mo_mrm_global_variables::l11_l1_id, mo_mrm_global_variables::l11_label, mo_mrm_global_variables::l11_length, mo_mrm_global_variables::l11_netperm, mo_mrm_global_variables::l11_noutlets, mo_mrm_global_variables::l11_rorder, mo_mrm_global_variables::l11_rowout, mo_mrm_global_variables::l11_sink, mo_mrm_global_variables::l11_slope, mo_mrm_global_variables::l11_tcol, mo_mrm_global_variables::l11_ton, mo_mrm_global_variables::l11_trow, mo_mrm_global_variables::l11_tsrout, mo_mrm_global_variables::l1_l11_id, mo_common_variables::level0, mo_common_variables::level1, mo_mrm_global_variables::level11, mo_common_constants::nodata_dp, and mo_common_variables::processmatrix.
Referenced by mo_mrm_init::mrm_init().
subroutine, public mo_mrm_restart::mrm_read_restart_states | ( | integer(i4), intent(in) | idomain, |
integer(i4), intent(in) | domainid, | ||
character(256), intent(in) | infile | ||
) |
read routing states
This subroutine reads the routing states from mRM_states_<domain_id>.nc that has to be in the given path directory. This subroutine has to be called directly each time the mHM_eval or mRM_eval is called such that the the states are always the same at the first simulation time step, crucial for optimization.
[in] | integer(i4) :: iDomain | number of domains |
[in] | character(256) :: InFile | Input Path including trailing slash |
Definition at line 459 of file mo_mrm_restart.f90.
References mo_mrm_global_variables::l11_c1, mo_mrm_global_variables::l11_c2, mo_mrm_global_variables::l11_k, mo_mrm_global_variables::l11_nlinkfracfpimp, mo_mrm_global_variables::l11_qmod, mo_mrm_global_variables::l11_qout, mo_mrm_global_variables::l11_qtin, mo_mrm_global_variables::l11_qtr, mo_mrm_global_variables::l11_xi, mo_mrm_global_variables::level11, mo_common_variables::nlcoverscene, and mo_mrm_constants::nroutingstates.
Referenced by mo_mhm_interface_run::mhm_interface_run_prepare_domain().
subroutine, public mo_mrm_restart::mrm_write_restart | ( | integer(i4), intent(in) | idomain, |
integer(i4), intent(in) | domainid, | ||
character(256), dimension(:), intent(in) | outfile | ||
) |
write routing states and configuration
write configuration and state variables to a given restart directory.
[in] | integer(i4) :: iDomain | number of domain |
[in] | character(256), dimension(:) :: OutFile | list of Output paths per Domain |
Definition at line 56 of file mo_mrm_restart.f90.
References mo_mrm_global_variables::domain_mrm, mo_common_variables::domainmeta, mo_mrm_global_variables::l0_facc, mo_mrm_global_variables::l0_fdir, mo_mpr_global_variables::l0_slope, mo_mrm_global_variables::l0_streamnet, mo_mrm_global_variables::l11_afloodplain, mo_mrm_global_variables::l11_c1, mo_mrm_global_variables::l11_c2, mo_mrm_global_variables::l11_celerity, mo_mrm_global_variables::l11_colout, mo_mrm_global_variables::l11_facc, mo_mrm_global_variables::l11_fcol, mo_mrm_global_variables::l11_fdir, mo_mrm_global_variables::l11_fromn, mo_mrm_global_variables::l11_frow, mo_mrm_global_variables::l11_k, mo_mrm_global_variables::l11_l1_id, mo_mrm_global_variables::l11_label, mo_mrm_global_variables::l11_length, mo_mrm_global_variables::l11_netperm, mo_mrm_global_variables::l11_nlinkfracfpimp, mo_mrm_global_variables::l11_qmod, mo_mrm_global_variables::l11_qout, mo_mrm_global_variables::l11_qtin, mo_mrm_global_variables::l11_qtr, mo_mrm_global_variables::l11_rorder, mo_mrm_global_variables::l11_rowout, mo_mrm_global_variables::l11_sink, mo_mrm_global_variables::l11_slope, mo_mrm_global_variables::l11_tcol, mo_mrm_global_variables::l11_ton, mo_mrm_global_variables::l11_trow, mo_mrm_global_variables::l11_tsrout, mo_mrm_global_variables::l11_xi, mo_mrm_global_variables::l1_l11_id, mo_common_constants::landcoverperiodsvarname, mo_common_variables::lc_year_end, mo_common_variables::lc_year_start, mo_common_variables::level0, mo_common_variables::level1, mo_mrm_global_variables::level11, mo_common_variables::nlcoverscene, mo_common_constants::nodata_dp, mo_common_constants::nodata_i4, mo_mrm_constants::nroutingstates, mo_common_variables::processmatrix, and mo_common_restart::write_grid_info().
Referenced by mo_mrm_write::mrm_write().