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

Startup procedures for mHM. More...

Functions/Subroutines

subroutine, public mhm_initialize
 Initialize main mHM variables.
 
subroutine constants_init
 Initialize mHM constants.
 

Detailed Description

Startup procedures for mHM.

This module initializes all variables required to run mHM. This module needs to be run only one time at the beginning of a simulation if re-starting files do not exist.

Authors
Luis Samaniego, Rohini Kumar
Date
Dec 2012

Function/Subroutine Documentation

◆ constants_init()

subroutine mo_startup::constants_init
private

Initialize mHM constants.

transformation of time units & initialize constants

Changelog
  • Rohini Kumar Jan 2013
  • Juliane Mai & Matthias Cuntz Nov 2013
    • check timeStep
  • Robert Schweppe Jun 2018
    • refactoring and reformatting
Authors
Luis Samaniego
Date
Dec 2012

Definition at line 135 of file mo_startup.f90.

References mo_common_mhm_mrm_variables::c2tstu, mo_mpr_file::file_hydrogeoclass, mo_file::file_namelist_mhm_param, mo_mpr_global_variables::geounitlist, mo_global_variables::neutron_integral_afast, mo_common_variables::processmatrix, mo_common_mhm_mrm_variables::read_restart, mo_neutrons::tabularintegralafast(), and mo_common_mhm_mrm_variables::timestep.

Referenced by mhm_initialize().

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

◆ mhm_initialize()

subroutine, public mo_startup::mhm_initialize

Initialize main mHM variables.

Initialize main mHM variables for a given domain. Calls the following procedures in this order:

  • Constant initialization.
  • Generate soil database.
  • Checking inconsistencies input fields.
  • Variable initialization at level-0.
  • Variable initialization at level-1.
  • Variable initialization at level-11.
  • Space allocation of remaining variable/parameters. Global variables will be used at this stage.
    Changelog
  • Luis Samaniego Mar 2008
    • fully distributed multilayer
  • Rohini Kumar Oct 2010
    • matrix to vector version
    • openmp parallelization
    • routing level 11
  • Luis Samaniego Jul 2012
    • removal of IMSL dependencies
  • Luis Samaniego Dec 2012
    • modular version
  • Rohini Kumar May 2013
    • code cleaned and error checks
  • Rohini Kumar Nov 2013
    • updated documentation
  • Stephan Thober Jun 2014
    • copied L2 initialization from mo_meteo_forcings
  • Stephan Thober Jun 2014
    • updated flag for read_restart
  • Stephan Thober Aug 2015
    • removed initialisation of routing
  • Rohini Kumar Mar 2016
    • changes for handling multiple soil database options
  • Robert Schweppe Jun 2018
    • refactoring and reformatting
  • Sebastian Müller Mar 2023
    • added separate read_nLAI_and_check_dims to correctly read nLAI from restart
      Authors
      Luis Samaniego, Rohini Kumar
      Date
      Dec 2012

Definition at line 68 of file mo_startup.f90.

References constants_init(), mo_common_variables::domainmeta, mo_mpr_startup::init_eff_params(), mo_common_variables::level0, mo_common_variables::level1, mo_common_mhm_mrm_variables::mhmfilerestartin, mo_mpr_startup::mpr_initialize(), mo_mpr_global_variables::nlai, mo_common_restart::read_grid_info(), mo_common_restart::read_nlai_and_check_dims(), mo_common_mhm_mrm_variables::read_restart, mo_grid::set_domain_indices(), and mo_init_states::variables_alloc().

Referenced by mo_mhm_interface::mhm_interface_init().

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