5.13.2-dev0
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
mo_mrm_restart Module Reference

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
 

Detailed Description

Restart routines.

This module contains the subroutines for reading and writing routing related variables to file.

Authors
Stephan Thober
Date
Aug 2015

Function/Subroutine Documentation

◆ mrm_read_restart_config()

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.

Parameters
[in]integer(i4) :: iDomainnumber of Domain
[in]character(256) :: InFileInput Path including trailing slash
Authors
Stephan Thober
Date
Apr 2013

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().

Here is the caller graph for this function:

◆ mrm_read_restart_states()

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.

Parameters
[in]integer(i4) :: iDomainnumber of domains
[in]character(256) :: InFileInput Path including trailing slash
Authors
Stephan Thober
Date
Sep 2015

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().

Here is the caller graph for this function:

◆ mrm_write_restart()

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.

Parameters
[in]integer(i4) :: iDomainnumber of domain
[in]character(256), dimension(:) :: OutFilelist of Output paths per Domain
Authors
Stephan Thober
Date
Aug 2015

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().

Here is the call graph for this function:
Here is the caller graph for this function: