5.13.2-dev0
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
mo_clean_up.f90
Go to the documentation of this file.
1!> \file mo_clean_up.f90
2!> \brief \copybrief mo_clean_up
3!> \details \copydetails mo_clean_up
4
5!> \brief Module to clean up after a mHM run.
6!> \version 0.1
7!> \authors Sebastian Mueller
8!> \date May 2022
9!> \copyright Copyright 2005-\today, the mHM Developers, Luis Samaniego, Sabine Attinger: All rights reserved.
10!! mHM is released under the LGPLv3+ license \license_note
11!> \ingroup f_common
13
14 implicit none
15 private
17
18 contains
19
20 !> \brief Deallocate all global variables.
24 use mo_global_variables, only : &
25 couple_cfg, &
27 l1_sm, &
28 l1_sm_mask, &
31 l1_smobs, &
33 l1_etobs, &
34 l1_twsaobs, &
35 bfi_obs, &
37 bfi_qt_sum, &
38 l1_inter, &
40 l1_sealstw, &
43 l1_satstw, &
48 l1_aetsoil, &
54 l1_melt, &
55 l1_percol, &
57 l1_rain, &
60 l1_snow, &
64
65 use mo_common_variables, only : &
67 l0_domain, &
70 dirmorpho, &
71 dirlcover, &
72 dirout, &
73 filelatlon, &
74 level0, &
75 level1, &
77 l0_elev, &
78 l0_lcover, &
79 lcfilename, &
85
86 use mo_mpr_global_variables, only : &
89 geounitkar, &
92 lailut, &
93 laiper, &
96 l0_slope, &
97 l0_asp, &
98 l0_soilid, &
99 l0_geounit, &
101 l1_fsealed, &
102 l1_alpha, &
103 l1_degdayinc, &
104 l1_degdaymax, &
106 l1_degday, &
107 l1_karstloss, &
108 l1_fasp, &
114 l1_froots, &
115 l1_maxinter, &
116 l1_kfastflow, &
117 l1_kslowflow, &
118 l1_kbaseflow, &
119 l1_kperco, &
128 soildb, &
129 l1_no_count, &
130 l1_bulkdens, &
133 use mo_mrm_global_variables, only : &
134 dirgauges, &
137 level11, &
138 l0_l11_remap, &
139 mrm_runoff, &
140 domain_mrm, &
141 l0_gaugeloc, &
143 l0_facc, &
144 l0_fdir, &
145 l0_drasc, &
146 l0_dracell, &
147 l0_streamnet, &
149 l0_noutlet, &
150 l0_celerity, &
151 l11_l1_id, &
153 l11_cellcoor, &
154 l1_l11_id, &
155 l11_areacell, &
156 l11_facc, &
157 l11_fdir, &
158 l11_noutlets, &
159 l11_celerity, &
162 l11_rowout, &
163 l11_colout, &
164 l11_qmod, &
165 l11_qout, &
166 l11_qtin, &
167 l11_qtr, &
168 l11_fromn, &
169 l11_ton, &
170 l11_netperm, &
171 l11_frow, &
172 l11_fcol, &
173 l11_trow, &
174 l11_tcol, &
175 l11_rorder, &
176 l11_label, &
177 l11_sink, &
178 l11_length, &
180 l11_slope, &
182 l11_k, &
183 l11_xi, &
184 l11_tsrout, &
185 l11_c1, &
186 l11_c2, &
191 gauge, &
192 inflowgauge, &
193 riv_temp_pcs, &
194 mrm_l0_slope => l0_slope
195
196 use mo_common_mhm_mrm_variables, only : &
198 warmper, &
199 evalper, &
200 simper, &
201 warmingdays, &
202 lcyearid, &
205
206 ! mo_global_variables
207 if ( allocated(l1_sm) ) deallocate(l1_sm)
208 if ( allocated(l1_sm_mask) ) deallocate(l1_sm_mask)
209 if ( allocated(l1_neutronsdata) ) deallocate(l1_neutronsdata)
210 if ( allocated(l1_neutronsdata_mask) ) deallocate(l1_neutronsdata_mask)
211 if ( allocated(l1_smobs) ) deallocate(l1_smobs)
212 if ( allocated(l1_neutronsobs) ) deallocate(l1_neutronsobs)
213 if ( allocated(l1_etobs) ) deallocate(l1_etobs)
214 if ( allocated(l1_twsaobs) ) deallocate(l1_twsaobs)
215 if ( allocated(bfi_obs) ) deallocate(bfi_obs)
216 if ( allocated(bfi_qbf_sum) ) deallocate(bfi_qbf_sum)
217 if ( allocated(bfi_qt_sum) ) deallocate(bfi_qt_sum)
218 if ( allocated(l1_inter) ) deallocate(l1_inter)
219 if ( allocated(l1_snowpack) ) deallocate(l1_snowpack)
220 if ( allocated(l1_sealstw) ) deallocate(l1_sealstw)
221 if ( allocated(l1_soilmoist) ) deallocate(l1_soilmoist)
222 if ( allocated(l1_unsatstw) ) deallocate(l1_unsatstw)
223 if ( allocated(l1_satstw) ) deallocate(l1_satstw)
224 if ( allocated(l1_neutrons) ) deallocate(l1_neutrons)
225 if ( allocated(l1_pet_calc) ) deallocate(l1_pet_calc)
226 if ( allocated(l1_temp_calc) ) deallocate(l1_temp_calc)
227 if ( allocated(l1_prec_calc) ) deallocate(l1_prec_calc)
228 if ( allocated(l1_aetsoil) ) deallocate(l1_aetsoil)
229 if ( allocated(l1_aetcanopy) ) deallocate(l1_aetcanopy)
230 if ( allocated(l1_aetsealed) ) deallocate(l1_aetsealed)
231 if ( allocated(l1_baseflow) ) deallocate(l1_baseflow)
232 if ( allocated(l1_infilsoil) ) deallocate(l1_infilsoil)
233 if ( allocated(l1_fastrunoff) ) deallocate(l1_fastrunoff)
234 if ( allocated(l1_melt) ) deallocate(l1_melt)
235 if ( allocated(l1_percol) ) deallocate(l1_percol)
236 if ( allocated(l1_preeffect) ) deallocate(l1_preeffect)
237 if ( allocated(l1_rain) ) deallocate(l1_rain)
238 if ( allocated(l1_runoffseal) ) deallocate(l1_runoffseal)
239 if ( allocated(l1_slowrunoff) ) deallocate(l1_slowrunoff)
240 if ( allocated(l1_snow) ) deallocate(l1_snow)
241 if ( allocated(l1_throughfall) ) deallocate(l1_throughfall)
242 if ( allocated(l1_total_runoff) ) deallocate(l1_total_runoff)
243 if ( allocated(neutron_integral_afast) ) deallocate(neutron_integral_afast)
244
245 ! mo_common_variables
246 if ( allocated(resolutionhydrology) ) deallocate(resolutionhydrology)
247 if ( allocated(l0_domain) ) deallocate(l0_domain)
248 if ( allocated(mhmfilerestartout) ) deallocate(mhmfilerestartout)
249 if ( allocated(mrmfilerestartout) ) deallocate(mrmfilerestartout)
250 if ( allocated(dirmorpho) ) deallocate(dirmorpho)
251 if ( allocated(dirlcover) ) deallocate(dirlcover)
252 if ( allocated(dirout) ) deallocate(dirout)
253 if ( allocated(filelatlon) ) deallocate(filelatlon)
254 if ( allocated(level0) ) deallocate(level0)
255 if ( allocated(level1) ) deallocate(level1)
256 if ( allocated(l0_l1_remap) ) deallocate(l0_l1_remap)
257 if ( allocated(l0_elev) ) deallocate(l0_elev)
258 if ( allocated(l0_lcover) ) deallocate(l0_lcover)
259 if ( allocated(lcfilename) ) deallocate(lcfilename)
260 if ( allocated(lc_year_start) ) deallocate(lc_year_start)
261 if ( allocated(lc_year_end) ) deallocate(lc_year_end)
262 if ( allocated(global_parameters) ) deallocate(global_parameters)
263 if ( allocated(global_parameters_name) ) deallocate(global_parameters_name)
264 if ( allocated(domainmeta%indices) ) deallocate(domainmeta%indices)
265 if ( allocated(domainmeta%L0DataFrom) ) deallocate(domainmeta%L0DataFrom)
266 if ( allocated(domainmeta%optidata) ) deallocate(domainmeta%optidata)
267 if ( allocated(domainmeta%doRouting) ) deallocate(domainmeta%doRouting)
268
269 ! mo_mpr_global_variables
270 if ( allocated(horizondepth_mhm) ) deallocate(horizondepth_mhm)
271 if ( allocated(geounitlist) ) deallocate(geounitlist)
272 if ( allocated(geounitkar) ) deallocate(geounitkar)
273 if ( allocated(laiboundaries) ) deallocate(laiboundaries)
274 if ( allocated(laiunitlist) ) deallocate(laiunitlist)
275 if ( allocated(lailut) ) deallocate(lailut)
276 if ( allocated(laiper) ) deallocate(laiper)
277 if ( allocated(l0_slope_emp) ) deallocate(l0_slope_emp)
278 if ( allocated(l0_gridded_lai) ) deallocate(l0_gridded_lai)
279 if ( allocated(l0_slope) ) deallocate(l0_slope)
280 if ( allocated(l0_asp) ) deallocate(l0_asp)
281 if ( allocated(l0_soilid) ) deallocate(l0_soilid)
282 if ( allocated(l0_geounit) ) deallocate(l0_geounit)
283 if ( allocated(dirgridded_lai) ) deallocate(dirgridded_lai)
284 if ( allocated(l1_fsealed) ) deallocate(l1_fsealed)
285 if ( allocated(l1_alpha) ) deallocate(l1_alpha)
286 if ( allocated(l1_degdayinc) ) deallocate(l1_degdayinc)
287 if ( allocated(l1_degdaymax) ) deallocate(l1_degdaymax)
288 if ( allocated(l1_degdaynopre) ) deallocate(l1_degdaynopre)
289 if ( allocated(l1_degday) ) deallocate(l1_degday)
290 if ( allocated(l1_karstloss) ) deallocate(l1_karstloss)
291 if ( allocated(l1_fasp) ) deallocate(l1_fasp)
292 if ( allocated(l1_petlaicorfactor) ) deallocate(l1_petlaicorfactor)
293 if ( allocated(l1_harsamcoeff) ) deallocate(l1_harsamcoeff)
294 if ( allocated(l1_prietayalpha) ) deallocate(l1_prietayalpha)
295 if ( allocated(l1_aeroresist) ) deallocate(l1_aeroresist)
296 if ( allocated(l1_surfresist) ) deallocate(l1_surfresist)
297 if ( allocated(l1_froots) ) deallocate(l1_froots)
298 if ( allocated(l1_maxinter) ) deallocate(l1_maxinter)
299 if ( allocated(l1_kfastflow) ) deallocate(l1_kfastflow)
300 if ( allocated(l1_kslowflow) ) deallocate(l1_kslowflow)
301 if ( allocated(l1_kbaseflow) ) deallocate(l1_kbaseflow)
302 if ( allocated(l1_kperco) ) deallocate(l1_kperco)
303 if ( allocated(l1_soilmoistfc) ) deallocate(l1_soilmoistfc)
304 if ( allocated(l1_soilmoistsat) ) deallocate(l1_soilmoistsat)
305 if ( allocated(l1_soilmoistexp) ) deallocate(l1_soilmoistexp)
306 if ( allocated(l1_jarvis_thresh_c1) ) deallocate(l1_jarvis_thresh_c1)
307 if ( allocated(l1_tempthresh) ) deallocate(l1_tempthresh)
308 if ( allocated(l1_unsatthresh) ) deallocate(l1_unsatthresh)
309 if ( allocated(l1_sealedthresh) ) deallocate(l1_sealedthresh)
310 if ( allocated(l1_wiltingpoint) ) deallocate(l1_wiltingpoint)
311 if ( allocated(soildb%id) ) deallocate(soildb%id)
312 if ( allocated(soildb%nHorizons) ) deallocate(soildb%nHorizons)
313 if ( allocated(soildb%is_present) ) deallocate(soildb%is_present)
314 if ( allocated(soildb%UD) ) deallocate(soildb%UD)
315 if ( allocated(soildb%LD) ) deallocate(soildb%LD)
316 if ( allocated(soildb%clay) ) deallocate(soildb%clay)
317 if ( allocated(soildb%sand) ) deallocate(soildb%sand)
318 if ( allocated(soildb%DbM) ) deallocate(soildb%DbM)
319 if ( allocated(soildb%depth) ) deallocate(soildb%depth)
320 if ( allocated(soildb%RZdepth) ) deallocate(soildb%RZdepth)
321 if ( allocated(soildb%Wd) ) deallocate(soildb%Wd)
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)
325 if ( allocated(soildb%Db) ) deallocate(soildb%Db)
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)
330 if ( allocated(soildb%Ks) ) deallocate(soildb%Ks)
331 if ( allocated(l1_no_count) ) deallocate(l1_no_count)
332 if ( allocated(l1_bulkdens) ) deallocate(l1_bulkdens)
333 if ( allocated(l1_latticewater) ) deallocate(l1_latticewater)
334 if ( allocated(l1_cosmicl3) ) deallocate(l1_cosmicl3)
335
336 ! mo_mrm_global_variables
337 if ( allocated(dirgauges) ) deallocate(dirgauges)
338 if ( allocated(dirtotalrunoff) ) deallocate(dirtotalrunoff)
339 if ( allocated(dirbankfullrunoff) ) deallocate(dirbankfullrunoff)
340 if ( allocated(level11) ) deallocate(level11)
341 if ( allocated(l0_l11_remap) ) deallocate(l0_l11_remap)
342 if ( allocated(mrm_runoff) ) deallocate(mrm_runoff)
343 if ( allocated(domain_mrm) ) deallocate(domain_mrm)
344 if ( allocated(l0_gaugeloc) ) deallocate(l0_gaugeloc)
345 if ( allocated(l0_inflowgaugeloc) ) deallocate(l0_inflowgaugeloc)
346 if ( allocated(l0_facc) ) deallocate(l0_facc)
347 if ( allocated(l0_fdir) ) deallocate(l0_fdir)
348 if ( allocated(l0_drasc) ) deallocate(l0_drasc)
349 if ( allocated(l0_dracell) ) deallocate(l0_dracell)
350 if ( allocated(l0_streamnet) ) deallocate(l0_streamnet)
351 if ( allocated(l0_floodplain) ) deallocate(l0_floodplain)
352 if ( allocated(l0_noutlet) ) deallocate(l0_noutlet)
353 if ( allocated(l0_celerity) ) deallocate(l0_celerity)
354 if ( allocated(l11_l1_id) ) deallocate(l11_l1_id)
355 if ( allocated(l1_total_runoff_in) ) deallocate(l1_total_runoff_in)
356 if ( allocated(l11_cellcoor) ) deallocate(l11_cellcoor)
357 if ( allocated(l1_l11_id) ) deallocate(l1_l11_id)
358 if ( allocated(l11_areacell) ) deallocate(l11_areacell)
359 if ( allocated(l11_facc) ) deallocate(l11_facc)
360 if ( allocated(l11_fdir) ) deallocate(l11_fdir)
361 if ( allocated(l11_noutlets) ) deallocate(l11_noutlets)
362 if ( allocated(l11_celerity) ) deallocate(l11_celerity)
363 if ( allocated(l11_meandering) ) deallocate(l11_meandering)
364 if ( allocated(l11_linkin_facc) ) deallocate(l11_linkin_facc)
365 if ( allocated(l11_rowout) ) deallocate(l11_rowout)
366 if ( allocated(l11_colout) ) deallocate(l11_colout)
367 if ( allocated(l11_qmod) ) deallocate(l11_qmod)
368 if ( allocated(l11_qout) ) deallocate(l11_qout)
369 if ( allocated(l11_qtin) ) deallocate(l11_qtin)
370 if ( allocated(l11_qtr) ) deallocate(l11_qtr)
371 if ( allocated(l11_fromn) ) deallocate(l11_fromn)
372 if ( allocated(l11_ton) ) deallocate(l11_ton)
373 if ( allocated(l11_netperm) ) deallocate(l11_netperm)
374 if ( allocated(l11_frow) ) deallocate(l11_frow)
375 if ( allocated(l11_fcol) ) deallocate(l11_fcol)
376 if ( allocated(l11_trow) ) deallocate(l11_trow)
377 if ( allocated(l11_tcol) ) deallocate(l11_tcol)
378 if ( allocated(l11_rorder) ) deallocate(l11_rorder)
379 if ( allocated(l11_label) ) deallocate(l11_label)
380 if ( allocated(l11_sink) ) deallocate(l11_sink)
381 if ( allocated(l11_length) ) deallocate(l11_length)
382 if ( allocated(l11_afloodplain) ) deallocate(l11_afloodplain)
383 if ( allocated(l11_slope) ) deallocate(l11_slope)
384 if ( allocated(l11_nlinkfracfpimp) ) deallocate(l11_nlinkfracfpimp)
385 if ( allocated(l11_k) ) deallocate(l11_k)
386 if ( allocated(l11_xi) ) deallocate(l11_xi)
387 if ( allocated(l11_tsrout) ) deallocate(l11_tsrout)
388 if ( allocated(l11_c1) ) deallocate(l11_c1)
389 if ( allocated(l11_c2) ) deallocate(l11_c2)
390 if ( allocated(l11_bankfull_runoff_in) ) deallocate(l11_bankfull_runoff_in)
391 if ( allocated(l0_channel_depth) ) deallocate(l0_channel_depth)
392 if ( allocated(l0_channel_elevation) ) deallocate(l0_channel_elevation)
393 if ( allocated(l0_river_head_mon_sum) ) deallocate(l0_river_head_mon_sum)
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)
398 if ( allocated(gauge%Q) ) deallocate(gauge%Q)
399 if ( allocated(gauge%T) ) deallocate(gauge%T)
400 if ( allocated(inflowgauge%domainId) ) deallocate(inflowgauge%domainId)
401 if ( allocated(inflowgauge%fname) ) deallocate(inflowgauge%fname)
402 if ( allocated(inflowgauge%gaugeId) ) deallocate(inflowgauge%gaugeId)
403 if ( allocated(inflowgauge%Q) ) deallocate(inflowgauge%Q)
404 if ( allocated(inflowgauge%T) ) deallocate(inflowgauge%T)
405 call riv_temp_pcs%clean_up()
406
407 ! mo_common_mHM_mRM_variables
408 if ( allocated(resolutionrouting) ) deallocate(resolutionrouting)
409 if ( allocated(warmper) ) deallocate(warmper)
410 if ( allocated(evalper) ) deallocate(evalper)
411 if ( allocated(simper) ) deallocate(simper)
412 if ( allocated(warmingdays) ) deallocate(warmingdays)
413 if ( allocated(lcyearid) ) deallocate(lcyearid)
414 if ( allocated(mhmfilerestartin) ) deallocate(mhmfilerestartin)
415 if ( allocated(mrmfilerestartin) ) deallocate(mrmfilerestartin)
416
417 ! mo_common_run_variables
418 call run_cfg%clean_up()
419
420 ! meteo handler clean up
421 call meteo_handler%clean_up()
422
423 ! coupling config clean up
424 call couple_cfg%clean_up()
425
426 ! reset verbosity
428
429 end subroutine deallocate_global_variables
430
431end module mo_clean_up
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
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