mHM
The mesoscale Hydrological Model
|
Wrapper for initializing Routing. More...
Functions/Subroutines | |
subroutine, public | mrm_configuration (file_namelist, unamelist, file_namelist_param, unamelist_param) |
read mRM configuration from namelists | |
subroutine, public | mrm_init (file_namelist, unamelist, file_namelist_param, unamelist_param) |
Initialize all mRM variables at all levels (i.e., L0, L1, and L11). | |
subroutine | print_startup_message (file_namelist, file_namelist_param) |
Print mRM startup message. | |
subroutine | config_output |
print mRM configuration | |
subroutine, public | variables_default_init_routing |
Default initalization mRM related L11 variables. | |
subroutine, public | fluxes_states_default_init_routing (idomain) |
initialize fluxes and states with default values for mRM | |
subroutine | l0_check_input_routing (l0domain_idomain) |
check routing input on level-0 | |
subroutine | variables_alloc_routing (idomain) |
allocated routing related variables | |
Wrapper for initializing Routing.
Calling all routines to initialize all mRM variables
COPYING
and COPYING.LESSER
provided with this software. The complete GNU license text can also be found at http://www.gnu.org/licenses/.
|
private |
print mRM configuration
Definition at line 362 of file mo_mrm_init.f90.
References mo_mrm_global_variables::dirgauges, mo_common_variables::dirlcover, mo_common_variables::dirmorpho, mo_common_variables::dirout, mo_mrm_global_variables::domain_mrm, mo_common_variables::domainmeta, mo_mrm_file::file_defoutput, mo_mrm_file::file_namelist_mrm, and mo_mrm_file::file_namelist_param_mrm.
Referenced by mrm_configuration().
subroutine, public mo_mrm_init::fluxes_states_default_init_routing | ( | integer(i4), intent(in), optional | idomain | ) |
initialize fluxes and states with default values for mRM
[in] | idomain | number of Domain (if not present, set for all) |
Definition at line 453 of file mo_mrm_init.f90.
References 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::level11, and mo_common_constants::p1_initstatefluxes.
Referenced by mo_mhm_interface_run::mhm_interface_run_prepare_domain(), and variables_default_init_routing().
|
private |
check routing input on level-0
[in] | l0domain_idomain | domain index for associated level-0 data |
Definition at line 500 of file mo_mrm_init.f90.
References mo_mrm_global_variables::l0_facc, mo_mrm_global_variables::l0_fdir, mo_common_variables::level0, and mo_common_constants::nodata_i4.
Referenced by mrm_init().
subroutine, public mo_mrm_init::mrm_configuration | ( | character(*), intent(in) | file_namelist, |
integer, intent(in) | unamelist, | ||
character(*), intent(in) | file_namelist_param, | ||
integer, intent(in) | unamelist_param | ||
) |
read mRM configuration from namelists
[in] | file_namelist | namelist file name |
[in] | unamelist | unit to open namelist |
[in] | file_namelist_param | parameter namelist file name |
[in] | unamelist_param | unit to open parameter namelist |
Definition at line 32 of file mo_mrm_init.f90.
References mo_common_mhm_mrm_read_config::check_optimization_settings(), mo_common_mhm_mrm_read_config::common_mhm_mrm_read_config(), mo_common_read_config::common_read_config(), config_output(), mo_common_mhm_mrm_variables::mrm_coupling_mode, mo_mrm_read_config::mrm_read_config(), print_startup_message(), mo_common_variables::processmatrix, and mo_mrm_global_variables::riv_temp_pcs.
Referenced by mo_mhm_interface::mhm_interface_init().
subroutine, public mo_mrm_init::mrm_init | ( | character(*), intent(in) | file_namelist, |
integer, intent(in) | unamelist, | ||
character(*), intent(in) | file_namelist_param, | ||
integer, intent(in) | unamelist_param | ||
) |
Initialize all mRM variables at all levels (i.e., L0, L1, and L11).
Initialize all mRM variables at all levels (i.e., L0, L1, and L11) either with default values or with values from restart file. The L0 mask (L0_mask), L0 elevation (L0_elev), and L0 land cover (L0_LCover) can be provided as optional variables to save memory because these variable will then not be read in again.
[in] | file_namelist | namelist file name |
[in] | unamelist | unit to open namelist |
[in] | file_namelist_param | parameter namelist file name |
[in] | unamelist_param | unit to open parameter namelist |
Definition at line 101 of file mo_mrm_init.f90.
References mo_mrm_river_head::calc_channel_elevation(), mo_mrm_global_variables::domain_mrm, mo_common_variables::domainmeta, mo_common_variables::global_parameters, mo_mrm_global_variables::gw_coupling, mo_grid::init_lowres_level(), mo_mrm_river_head::init_masked_zeros_l0(), l0_check_input_routing(), mo_grid::l0_grid_setup(), mo_mrm_global_variables::l0_l11_remap, mo_common_variables::l0_l1_remap, mo_mrm_global_variables::l0_river_head_mon_sum, mo_mrm_net_startup::l11_flow_accumulation(), mo_mrm_net_startup::l11_flow_direction(), mo_mrm_net_startup::l11_fraction_sealed_floodplain(), mo_mrm_global_variables::l11_fromn, mo_mrm_net_startup::l11_l1_mapping(), mo_mrm_global_variables::l11_length, mo_mrm_net_startup::l11_link_location(), mo_mrm_global_variables::l11_netperm, mo_mrm_global_variables::l11_noutlets, mo_mrm_net_startup::l11_routing_order(), mo_mrm_net_startup::l11_set_drain_outlet_gauges(), mo_mrm_net_startup::l11_set_network_topology(), mo_mrm_net_startup::l11_stream_features(), mo_common_variables::level0, mo_common_variables::level1, mo_mrm_global_variables::level11, mo_common_mhm_mrm_variables::mrm_coupling_mode, mo_mrm_mpr::mrm_init_param(), mo_mrm_read_data::mrm_read_bankfull_runoff(), mo_mrm_read_data::mrm_read_discharge(), mo_mrm_read_data::mrm_read_l0_data(), mo_mrm_restart::mrm_read_restart_config(), mo_common_mhm_mrm_variables::mrm_read_river_network, mo_mrm_read_data::mrm_read_total_runoff(), mo_common_mhm_mrm_variables::mrmfilerestartin, mo_common_constants::nodata_dp, mo_common_constants::nodata_i4, mo_common_variables::processmatrix, mo_common_restart::read_grid_info(), mo_read_latlon::read_latlon(), mo_mrm_global_variables::readlatlon, mo_common_variables::resolutionhydrology, mo_common_mhm_mrm_variables::resolutionrouting, mo_mrm_global_variables::riv_temp_pcs, mo_grid::set_domain_indices(), and variables_alloc_routing().
Referenced by mo_mhm_interface::mhm_interface_init().
|
private |
Print mRM startup message.
[in] | file_namelist | namelist file name |
[in] | file_namelist_param | parameter namelist file name |
Definition at line 315 of file mo_mrm_init.f90.
References mo_mrm_file::file_defoutput, mo_mrm_file::file_main, mo_mrm_file::version, and mo_mrm_file::version_date.
Referenced by mrm_configuration().
|
private |
allocated routing related variables
[in] | idomain | domain index |
Definition at line 537 of file mo_mrm_init.f90.
References mo_common_variables::domainmeta, mo_mrm_global_variables::l0_celerity, mo_mrm_global_variables::l11_c1, mo_mrm_global_variables::l11_c2, mo_mrm_global_variables::l11_celerity, mo_mrm_global_variables::l11_k, 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_common_variables::level0, mo_mrm_global_variables::level11, and mo_mrm_constants::nroutingstates.
Referenced by mrm_init().
subroutine, public mo_mrm_init::variables_default_init_routing |
Default initalization mRM related L11 variables.
Default initalization of mHM related L11 variables (e.g., states, fluxes, and parameters) as per given constant values given in mo_mhm_constants. Variables initalized here is defined in the mo_global_variables.f90 file. Only Variables that are defined in the variables_alloc subroutine are intialized here. If a variable is added or removed here, then it also has to be added or removed in the subroutine state_variables_set in the module mo_restart and in the subroutine set_state in the module mo_set_netcdf_restart.
Definition at line 426 of file mo_mrm_init.f90.
References fluxes_states_default_init_routing(), mo_mrm_global_variables::l11_c1, mo_mrm_global_variables::l11_c2, mo_mrm_global_variables::l11_k, mo_mrm_global_variables::l11_xi, and mo_common_constants::p1_initstatefluxes.
Referenced by mo_mhm_interface_run::mhm_interface_run_prepare().