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

Python wrapper module to control a mHM model. More...

Functions/Subroutines

subroutine config_coupling (couple_case, meteo_timestep, meteo_time_ref_endpoint, meteo_expect_pre, meteo_expect_temp, meteo_expect_pet, meteo_expect_tmin, meteo_expect_tmax, meteo_expect_netrad, meteo_expect_absvappress, meteo_expect_windspeed, meteo_expect_ssrd, meteo_expect_strd, meteo_expect_tann)
 Configure coupling mode of mHM.
 
subroutine init (namelist_mhm, namelist_mhm_param, namelist_mhm_output, namelist_mrm_output, cwd)
 Initialize a mHM model.
 
subroutine run ()
 Execute a mHM model.
 
subroutine disable_output ()
 disable all mHM/mRM outputs during runtime.
 
subroutine run_with_parameter (parameter, n)
 Execute a mHM model with given parameters.
 
subroutine run_or_optimize ()
 Execute a mHM model or an optimization depending on the configuration.
 
subroutine version (ver_string)
 Get the mHM version.
 
subroutine finalize ()
 Finalize a mHM model.
 
subroutine set_verbosity (level)
 Set verbosity level of mHM.
 

Detailed Description

Python wrapper module to control a mHM model.

Date
Nov 2022

Function/Subroutine Documentation

◆ config_coupling()

subroutine model::config_coupling ( integer(i4), intent(in)  couple_case,
integer(i4), intent(in)  meteo_timestep,
logical, intent(in)  meteo_time_ref_endpoint,
logical, intent(in)  meteo_expect_pre,
logical, intent(in)  meteo_expect_temp,
logical, intent(in)  meteo_expect_pet,
logical, intent(in)  meteo_expect_tmin,
logical, intent(in)  meteo_expect_tmax,
logical, intent(in)  meteo_expect_netrad,
logical, intent(in)  meteo_expect_absvappress,
logical, intent(in)  meteo_expect_windspeed,
logical, intent(in)  meteo_expect_ssrd,
logical, intent(in)  meteo_expect_strd,
logical, intent(in)  meteo_expect_tann 
)

Configure coupling mode of mHM.

This will prevent reading the "coupling" namelist.

Parameters
[in]couple_casecoupling case
[in]meteo_timesteptimestep for meteo-data from coupling
[in]meteo_time_ref_endpointexpect meteo has time reference point at end of time interval
[in]meteo_expect_preexpect meteo from coupling: [mm] Precipitation
[in]meteo_expect_tempexpect meteo from coupling: [degC] Air temperature
[in]meteo_expect_petexpect meteo from coupling: [mm TS-1] Potential evapotranspiration
[in]meteo_expect_tminexpect meteo from coupling: [degC] minimum daily air temperature
[in]meteo_expect_tmaxexpect meteo from coupling: [degC] maximum daily air temperature
[in]meteo_expect_netradexpect meteo from coupling: [W m2] net radiation
[in]meteo_expect_absvappressexpect meteo from coupling: [Pa] absolute vapour pressure
[in]meteo_expect_windspeedexpect meteo from coupling: [m s-1] windspeed
[in]meteo_expect_ssrdexpect meteo from coupling: [W m2] short wave radiation
[in]meteo_expect_strdexpect meteo from coupling: [W m2] long wave radiation
[in]meteo_expect_tannexpect meteo from coupling: [degC] annual mean air temperature

Definition at line 20 of file wrapper.f90.

References mo_global_variables::couple_cfg.

◆ disable_output()

subroutine model::disable_output

disable all mHM/mRM outputs during runtime.

Definition at line 109 of file wrapper.f90.

References mo_global_variables::outputflxstate, and mo_mrm_global_variables::outputflxstate_mrm.

◆ finalize()

subroutine model::finalize

Finalize a mHM model.

Definition at line 151 of file wrapper.f90.

References mo_mhm_interface::mhm_interface_finalize().

Here is the call graph for this function:

◆ init()

subroutine model::init ( character(*), intent(in)  namelist_mhm,
character(*), intent(in)  namelist_mhm_param,
character(*), intent(in)  namelist_mhm_output,
character(*), intent(in)  namelist_mrm_output,
character(*), intent(in)  cwd 
)

Initialize a mHM model.

Parameters
[in]namelist_mhmpath to mHM configuration namelist
[in]namelist_mhm_parampath to mHM parameter namelist
[in]namelist_mhm_outputpath to mHM output namelist
[in]namelist_mrm_outputpath to mRM output namelist
[in]cwddesired working directory

Definition at line 85 of file wrapper.f90.

References mo_mhm_interface::mhm_interface_init().

Here is the call graph for this function:

◆ run()

subroutine model::run

Execute a mHM model.

Definition at line 102 of file wrapper.f90.

References mo_mhm_interface::mhm_interface_run().

Here is the call graph for this function:

◆ run_or_optimize()

subroutine model::run_or_optimize

Execute a mHM model or an optimization depending on the configuration.

Definition at line 127 of file wrapper.f90.

References mo_mhm_interface::mhm_interface_run(), mo_mhm_interface::mhm_interface_run_optimization(), and mo_common_mhm_mrm_variables::optimize.

Here is the call graph for this function:

◆ run_with_parameter()

subroutine model::run_with_parameter ( real(dp), dimension(n), intent(in)  parameter,
integer(i4)  n 
)

Execute a mHM model with given parameters.

Parameters
nnumber of parameters

Definition at line 118 of file wrapper.f90.

References mo_mhm_eval::mhm_eval().

Here is the call graph for this function:

◆ set_verbosity()

subroutine model::set_verbosity ( integer(i4), intent(in)  level)

Set verbosity level of mHM.

Parameters
[in]levelverbosity level (0, 1, 2)

Definition at line 158 of file wrapper.f90.

References mo_mhm_cli::set_verbosity_level().

Here is the call graph for this function:

◆ version()

subroutine model::version ( character(64), intent(out)  ver_string)

Get the mHM version.

Definition at line 143 of file wrapper.f90.

References mo_file::version.

Referenced by mhm::__getattr__().

Here is the caller graph for this function: