![]() |
mHM
The mesoscale Hydrological Model
|
Startup procedures for mHM. More...
Functions/Subroutines | |
| subroutine, public | mpr_initialize |
| Initialize main mHM variables. | |
| subroutine | l0_check_input (idomain) |
| Check for errors in L0 input data. | |
| subroutine | l0_variable_init (idomain) |
| level 0 variable initialization | |
| subroutine, public | init_eff_params (ncells1) |
| Allocation of space for mHM related L1 and L11 variables. | |
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.
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_mpr_startup::init_eff_params | ( | integer(i4), intent(in) | ncells1 | ) |
Allocation of space for mHM related L1 and L11 variables.
Allocation of space for mHM related L1 and L11 variables (e.g., states, fluxes, and parameters) for a given domain. Variables allocated here is defined in them mo_global_variables.f90 file. After allocating any variable in this routine, initalize them in the following variables_default_init subroutine.
| [in] | ncells1 | number of L1 cells |
Definition at line 363 of file mo_mpr_startup.f90.
References mo_mpr_global_variables::l1_aeroresist, mo_mpr_global_variables::l1_alpha, mo_mpr_global_variables::l1_bulkdens, mo_mpr_global_variables::l1_cosmicl3, mo_mpr_global_variables::l1_degday, mo_mpr_global_variables::l1_degdayinc, mo_mpr_global_variables::l1_degdaymax, mo_mpr_global_variables::l1_degdaynopre, mo_mpr_global_variables::l1_fasp, mo_mpr_global_variables::l1_froots, mo_mpr_global_variables::l1_fsealed, mo_mpr_global_variables::l1_harsamcoeff, mo_mpr_global_variables::l1_jarvis_thresh_c1, mo_mpr_global_variables::l1_karstloss, mo_mpr_global_variables::l1_kbaseflow, mo_mpr_global_variables::l1_kfastflow, mo_mpr_global_variables::l1_kperco, mo_mpr_global_variables::l1_kslowflow, mo_mpr_global_variables::l1_latticewater, mo_mpr_global_variables::l1_maxinter, mo_mpr_global_variables::l1_no_count, mo_mpr_global_variables::l1_petlaicorfactor, mo_mpr_global_variables::l1_prietayalpha, mo_mpr_global_variables::l1_sealedthresh, mo_mpr_global_variables::l1_soilmoistexp, mo_mpr_global_variables::l1_soilmoistfc, mo_mpr_global_variables::l1_soilmoistsat, mo_mpr_global_variables::l1_surfresist, mo_mpr_global_variables::l1_tempthresh, mo_mpr_global_variables::l1_unsatthresh, mo_mpr_global_variables::l1_wiltingpoint, mo_mpr_global_variables::nlai, mo_common_variables::nlcoverscene, mo_mpr_global_variables::nsoilhorizons_mhm, and mo_common_constants::p1_initstatefluxes.
Referenced by mo_startup::mhm_initialize(), and mpr_initialize().
|
private |
Check for errors in L0 input data.
Check for possible errors in input data (morphological and land cover) at level-0
| [in] | idomain | domain id |
by default; when iFlag_soilDB = 0
Definition at line 126 of file mo_mpr_startup.f90.
References mo_common_constants::eps_dp, mo_mpr_global_variables::iflag_soildb, mo_mpr_global_variables::l0_asp, mo_common_variables::l0_elev, mo_mpr_global_variables::l0_geounit, mo_mpr_global_variables::l0_gridded_lai, mo_common_variables::l0_lcover, mo_mpr_global_variables::l0_slope, mo_mpr_global_variables::l0_soilid, mo_common_variables::level0, mo_common_variables::nlcoverscene, mo_common_constants::nodata_dp, mo_common_constants::nodata_i4, mo_mpr_global_variables::nsoilhorizons_mhm, and mo_mpr_global_variables::timestep_lai_input.
Referenced by mpr_initialize().
|
private |
level 0 variable initialization
following tasks are performed for L0 data sets
| [in] | idomain | domain id |
by default; when iFlag_soilDB = 0
Definition at line 237 of file mo_mpr_startup.f90.
References mo_mpr_global_variables::iflag_soildb, mo_common_grid::l0_grid_setup(), mo_mpr_global_variables::l0_slope, mo_mpr_global_variables::l0_slope_emp, mo_mpr_global_variables::l0_soilid, mo_common_variables::level0, mo_mpr_global_variables::nsoilhorizons_mhm, mo_mpr_global_variables::nsoiltypes, and mo_mpr_global_variables::soildb.
Referenced by mpr_initialize().
| subroutine, public mo_mpr_startup::mpr_initialize |
Initialize main mHM variables.
Initialize main mHM variables for a given domain. Calls the following procedures in this order:
Definition at line 64 of file mo_mpr_startup.f90.
References mo_common_variables::domainmeta, mo_soil_database::generate_soil_database(), init_eff_params(), mo_common_grid::init_lowres_level(), l0_check_input(), mo_common_variables::l0_l1_remap, l0_variable_init(), mo_common_variables::level0, mo_common_variables::level1, mo_read_latlon::read_latlon(), mo_common_variables::resolutionhydrology, and mo_common_grid::set_domain_indices().
Referenced by mo_startup::mhm_initialize().