312 if (
allocated(
soildb%nHorizons) )
deallocate(
soildb%nHorizons)
313 if (
allocated(
soildb%is_present) )
deallocate(
soildb%is_present)
320 if (
allocated(
soildb%RZdepth) )
deallocate(
soildb%RZdepth)
322 if (
allocated(
soildb%nTillHorizons) )
deallocate(
soildb%nTillHorizons)
323 if (
allocated(
soildb%thetaS_Till) )
deallocate(
soildb%thetaS_Till)
324 if (
allocated(
soildb%thetaS) )
deallocate(
soildb%thetaS)
326 if (
allocated(
soildb%thetaFC_Till) )
deallocate(
soildb%thetaFC_Till)
327 if (
allocated(
soildb%thetaFC) )
deallocate(
soildb%thetaFC)
328 if (
allocated(
soildb%thetaPW_Till) )
deallocate(
soildb%thetaPW_Till)
329 if (
allocated(
soildb%thetaPW) )
deallocate(
soildb%thetaPW)
394 if (
allocated(mrm_l0_slope) )
deallocate(mrm_l0_slope)
395 if (
allocated(
gauge%domainId) )
deallocate(
gauge%domainId)
396 if (
allocated(
gauge%fname) )
deallocate(
gauge%fname)
397 if (
allocated(
gauge%gaugeId) )
deallocate(
gauge%gaugeId)
Module to clean up after a mHM run.
subroutine, public deallocate_global_variables()
Deallocate all global variables.
Provides structures needed by mHM, mRM and/or mpr.
character(256), dimension(:), allocatable, public mrmfilerestartin
type(period), dimension(:), allocatable, public warmper
character(256), dimension(:), allocatable, public mhmfilerestartin
real(dp), dimension(:), allocatable, public resolutionrouting
integer(i4), dimension(:), allocatable, public warmingdays
integer(i4), dimension(:, :), allocatable, public lcyearid
type(period), dimension(:), allocatable, public simper
type(period), dimension(:), allocatable, public evalper
Provides structures needed by mhm_eval to store current run config.
type(run_cfg_t), public run_cfg
This is a container to hold all information while running mHM.
Provides structures needed by mHM, mRM and/or mpr.
character(256), dimension(:), allocatable, public filelatlon
character(256), dimension(:), allocatable, public mhmfilerestartout
real(dp), dimension(:), allocatable, public resolutionhydrology
real(dp), dimension(:, :), allocatable, target, public global_parameters
character(256), dimension(:), allocatable, public lcfilename
character(256), dimension(:), allocatable, public global_parameters_name
type(domain_meta), public domainmeta
character(256), dimension(:), allocatable, public dirlcover
integer(i4), dimension(:), allocatable, public lc_year_end
character(256), dimension(:), allocatable, public dirout
real(dp), dimension(:), allocatable, public l0_elev
character(256), dimension(:), allocatable, public dirmorpho
integer(i4), dimension(:, :), allocatable, public l0_lcover
character(256), dimension(:), allocatable, public mrmfilerestartout
integer(i4), dimension(:), allocatable, public l0_domain
type(grid), dimension(:), allocatable, target, public level1
type(grid), dimension(:), allocatable, target, public level0
integer(i4), dimension(:), allocatable, public lc_year_start
type(gridremapper), dimension(:), allocatable, public l0_l1_remap
Main global variables for mHM.
type(meteo_handler_type), public meteo_handler
the meteo handler class
real(dp), dimension(:), allocatable, public l1_slowrunoff
[mm TS-1] Slow runoff component
real(dp), dimension(:, :), allocatable, public l1_aetsoil
[mm TS-1] Actual ET from soil layers
real(dp), dimension(:), allocatable, public l1_rain
[mm TS-1] Rain precipitation depth
real(dp), dimension(:), allocatable, public l1_aetsealed
[mm TS-1] Real evap.
real(dp), dimension(:, :), allocatable, public l1_sm
[-] soil moisture input for optimization
real(dp), dimension(:), allocatable, public l1_satstw
[mm] groundwater storage
real(dp), dimension(:), allocatable, public l1_aetcanopy
[mm TS-1] Real evaporation intensity from canopy
type(optidata), dimension(:), allocatable, public l1_twsaobs
this stores L1_tws, the mask, the directory of the observerd data, and the timestepInput of the simul...
real(dp), dimension(:, :), allocatable, public l1_neutronsdata
[cph] ground albedo neutrons input
real(dp), dimension(:), allocatable, public l1_snow
[mm TS-1] Snow precipitation depth
real(dp), dimension(:), allocatable, public l1_preeffect
[mm TS-1] Effective precip.
type(optidata), dimension(:), allocatable, public l1_neutronsobs
real(dp), dimension(:), allocatable, public l1_inter
[mm] Interception
real(dp), dimension(:), allocatable, public neutron_integral_afast
pre-calculated integrand for
real(dp), dimension(:), allocatable, public l1_sealstw
[mm] Retention storage of impervious areas
real(dp), dimension(:), allocatable, public l1_percol
[mm TS-1] Percolation.
type(couple_cfg_type), public couple_cfg
coupling configuration class
type(optidata), dimension(:), allocatable, public l1_smobs
real(dp), dimension(:, :), allocatable, public l1_soilmoist
[mm] Soil moisture of each horizon
logical, dimension(:, :), allocatable, public l1_sm_mask
[-] mask for valid data in L1_sm
logical, dimension(:, :), allocatable, public l1_neutronsdata_mask
[cph] mask for valid data in L1_neutrons
real(dp), dimension(:), allocatable, public bfi_qbf_sum
q2 weighted sum for each domain
real(dp), dimension(:), allocatable, public bfi_qt_sum
q2 weighted sum for each domain
real(dp), dimension(:), allocatable, public l1_pet_calc
[mm TS-1] estimated/corrected potential evapotranspiration
real(dp), dimension(:), allocatable, public l1_unsatstw
[mm] upper soil storage
type(optidata), dimension(:), allocatable, public l1_etobs
real(dp), dimension(:), allocatable, public l1_melt
[mm TS-1] Melting snow depth.
real(dp), dimension(:), allocatable, public l1_fastrunoff
[mm TS-1] Fast runoff component
real(dp), dimension(:), allocatable, public l1_snowpack
[mm] Snowpack
real(dp), dimension(:), allocatable, public l1_neutrons
[mm] Ground Albedo Neutrons
real(dp), dimension(:), allocatable, public l1_prec_calc
[mm TS-1] precipitation for current time step
real(dp), dimension(:), allocatable, public l1_runoffseal
[mm TS-1] Direct runoff from impervious areas
real(dp), dimension(:, :), allocatable, public l1_infilsoil
[mm TS-1] Infiltration intensity each soil horizon
real(dp), dimension(:), allocatable, public l1_baseflow
[mm TS-1] Baseflow
real(dp), dimension(:), allocatable, public l1_throughfall
[mm TS-1] Throughfall.
real(dp), dimension(:), allocatable, public bfi_obs
given base-flow index per domain
real(dp), dimension(:), allocatable, public l1_temp_calc
[degC] temperature for current time step
real(dp), dimension(:), allocatable, public l1_total_runoff
[m3 TS-1] Generated runoff
Module to parse command line arguments of mHM.
subroutine, public set_verbosity_level(level)
Set the verbosity level of mHM.
Global variables for mpr only.
real(dp), dimension(:, :, :), allocatable, public l1_degday
integer(i4), dimension(:), allocatable, public geounitkar
character(256), dimension(:), allocatable, public dirgridded_lai
real(dp), dimension(:, :, :), allocatable, public l1_degdaymax
integer(i4), dimension(:), allocatable, public geounitlist
real(dp), dimension(:, :, :), allocatable, public l1_soilmoistexp
real(dp), dimension(:, :, :), allocatable, public l1_harsamcoeff
type(period), dimension(:), allocatable, public laiper
real(dp), dimension(:, :, :), allocatable, public l1_karstloss
integer(i4), dimension(:), allocatable, public laiunitlist
real(dp), dimension(:, :, :), allocatable, public l1_unsatthresh
real(dp), dimension(:, :, :), allocatable, public l1_kperco
real(dp), dimension(:), allocatable, public l0_slope_emp
real(dp), dimension(:, :, :), allocatable, public l1_alpha
real(dp), dimension(:, :, :), allocatable, public l1_surfresist
integer(i4), dimension(:), allocatable, public l0_geounit
real(dp), dimension(:,:,:), allocatable, public l1_cosmicl3
real(dp), dimension(:), allocatable, public l0_asp
real(dp), dimension(:, :, :), allocatable, public l1_degdayinc
real(dp), dimension(:, :, :), allocatable, public l1_petlaicorfactor
real(dp), dimension(:, :, :), allocatable, public l1_fasp
real(dp), dimension(:, :, :), allocatable, public l1_kbaseflow
real(dp), dimension(:, :), allocatable, public lailut
real(dp), dimension(:, :, :), allocatable, public l1_soilmoistfc
type(soiltype), public soildb
real(dp), dimension(:, :, :), allocatable, public l1_maxinter
real(dp), dimension(:,:,:), allocatable, public l1_bulkdens
real(dp), dimension(:, :, :), allocatable, public l1_degdaynopre
real(dp), dimension(:, :, :), allocatable, public l1_wiltingpoint
integer(i4), dimension(:, :), allocatable, public l0_soilid
real(dp), dimension(:, :), allocatable, public l0_gridded_lai
real(dp), dimension(:, :, :), allocatable, public l1_prietayalpha
real(dp), dimension(:, :, :), allocatable, public l1_fsealed
real(dp), dimension(:), allocatable, public laiboundaries
real(dp), dimension(:, :, :), allocatable, public l1_froots
real(dp), dimension(:, :, :), allocatable, public l1_jarvis_thresh_c1
real(dp), dimension(:, :, :), allocatable, public l1_tempthresh
real(dp), dimension(:), allocatable, public horizondepth_mhm
real(dp), dimension(:,:,:), allocatable, public l1_no_count
real(dp), dimension(:, :, :), allocatable, public l1_kfastflow
real(dp), dimension(:, :, :), allocatable, public l1_kslowflow
real(dp), dimension(:, :, :), allocatable, public l1_aeroresist
real(dp), dimension(:, :, :), allocatable, public l1_sealedthresh
real(dp), dimension(:, :, :), allocatable, public l1_soilmoistsat
real(dp), dimension(:), allocatable, public l0_slope
real(dp), dimension(:,:,:), allocatable, public l1_latticewater
Global variables for mRM only.
type(gaugingstation), public inflowgauge
integer(i4), dimension(:,:), allocatable, public l11_cellcoor
real(dp), dimension(:, :), allocatable, public l11_qtin
type(gridremapper), dimension(:), allocatable, public l0_l11_remap
integer(i4), dimension(:), allocatable, public l0_floodplain
real(dp), dimension(:), allocatable, public l11_facc
integer(i4), dimension(:), allocatable, public l11_netperm
real(dp), dimension(:), allocatable, public l11_qout
real(dp), dimension(:, :), allocatable, public l11_nlinkfracfpimp
integer(i4), dimension(:), allocatable, public l11_l1_id
integer(i4), dimension(:), allocatable, public l1_l11_id
real(dp), dimension(:), allocatable, public l0_celerity
type(riv_temp_type), public riv_temp_pcs
This is a container for the river temperature routing process (pcs)
real(dp), dimension(:), allocatable, target, public l11_afloodplain
integer(i4), dimension(:), allocatable, public l0_fdir
integer(i4), dimension(:), allocatable, public l0_noutlet
integer(i4), dimension(:), allocatable, public l11_fcol
character(256), dimension(:), allocatable, public dirbankfullrunoff
real(dp), dimension(:), allocatable, public l11_xi
integer(i4), dimension(:), allocatable, public l0_dracell
integer(i4), dimension(:), allocatable, public l11_label
real(dp), dimension(:), allocatable, public l0_channel_depth
integer(i4), dimension(:), allocatable, public l0_streamnet
real(dp), dimension(:, :), allocatable, public mrm_runoff
character(256), dimension(:), allocatable, public dirgauges
type(gaugingstation), public gauge
integer(i4), dimension(:), allocatable, public l11_fromn
real(dp), dimension(:), allocatable, public l11_length
integer(i4), dimension(:), allocatable, public l11_rowout
real(dp), dimension(:), allocatable, public l11_qmod
integer(i4), dimension(:), allocatable, public l11_ton
type(domaininfo_mrm), dimension(:), allocatable, target, public domain_mrm
integer(i4), dimension(:), allocatable, public l11_trow
type(grid), dimension(:), allocatable, target, public level11
integer(i4), dimension(:), allocatable, public l11_fdir
integer(i4), dimension(:), allocatable, public l0_facc
real(dp), dimension(:), allocatable, public l11_c1
integer(i4), dimension(:), allocatable, public l11_tcol
integer(i4), dimension(:), allocatable, public l11_frow
real(dp), dimension(:), allocatable, public l11_slope
logical, dimension(:), allocatable, public l11_sink
integer(i4), dimension(:), allocatable, public l0_inflowgaugeloc
character(256), dimension(:), allocatable, public dirtotalrunoff
real(dp), dimension(:, :), allocatable, public l1_total_runoff_in
real(dp), dimension(:), allocatable, public l11_celerity
real(dp), dimension(:), allocatable, public l11_bankfull_runoff_in
integer(i4), dimension(:), allocatable, public l11_noutlets
real(dp), dimension(:), allocatable, public l11_k
integer(i4), dimension(:), allocatable, public l0_drasc
integer(i4), dimension(:), allocatable, public l11_rorder
real(dp), dimension(:), allocatable, public l11_tsrout
real(dp), dimension(:), allocatable, public l11_linkin_facc
integer(i4), dimension(:), allocatable, public l0_gaugeloc
real(dp), dimension(:), allocatable, public l0_river_head_mon_sum
real(dp), dimension(:), allocatable, public l0_channel_elevation
integer(i4), dimension(:), allocatable, public l11_colout
real(dp), dimension(:, :), allocatable, public l11_qtr
real(dp), dimension(:), allocatable, public l11_areacell
real(dp), dimension(:), allocatable, public l11_meandering
real(dp), dimension(:), allocatable, public l11_c2