5.13.2
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
mpr_driver.F90
Go to the documentation of this file.
1!> \file mpr_driver.f90
2!> \brief Distributed precipitation-runoff model mHM
3#ifdef MPR_STANDALONE
4!> \details \copydetails mpr_driver
5
6!> \brief Distributed precipitation-runoff model mHM
7!> \details This is the main driver of mHM, which calls
8!! one instance of mHM for a multiple domains and a given period.
9!! \image html mhm5-logo.png "Typical mHM cell"
10!! \image latex mhm5-logo.pdf "Typical mHM cell" width=10cm
11!> \changelog
12!! - Robert Schweppe Jun 2018
13!! - refactored from mhm codebase
14!> \authors Luis Samaniego & Rohini Kumar (UFZ)
15!> \date Dec 2015
16!> \version 0.1
17!> \copyright (c)2005-2019, Helmholtz-Zentrum fuer Umweltforschung GmbH - UFZ.
18!! All rights reserved.
19!!
20!! This code is a property of:
21!!
22!! ----------------------------------------------------------
23!!
24!! Helmholtz-Zentrum fuer Umweltforschung GmbH - UFZ
25!! Registered Office: Leipzig
26!! Registration Office: Amtsgericht Leipzig
27!! Trade Register: Nr. B 4703
28!! Chairman of the Supervisory Board: MinDirig Wilfried Kraus
29!! Scientific Director: Prof. Dr. Georg Teutsch
30!! Administrative Director: Dr. Heike Grassmann
31!!
32!! ----------------------------------------------------------
33!!
34!! NEITHER UFZ NOR THE DEVELOPERS MAKES ANY WARRANTY,
35!! EXPRESS OR IMPLIED, OR ASSUMES ANY LIABILITY FOR THE USE
36!! OF THIS SOFTWARE. If software is modified to produce
37!! derivative works, such modified software should be
38!! clearly marked, so as not to confuse it with the version
39!! available from UFZ. This code can be used for research
40!! purposes ONLY provided that the following sources are
41!! acknowledged:
42!!
43!! Samaniego L., Kumar R., Attinger S. (2010): Multiscale
44!! parameter regionalization of a grid-based hydrologic
45!! model at the mesoscale. Water Resour. Res., 46,
46!! W05523, doi:10.1029/2008WR007327.
47!!
48!! Kumar, R., L. Samaniego, and S. Attinger (2013), Implications
49!! of distributed hydrologic model parameterization on water
50!! fluxes at multiple scales and locations, Water Resour. Res.,
51!! 49, doi:10.1029/2012WR012195.
52!!
53!! For commercial applications you have to consult the
54!! authorities of the UFZ.
55!!
56!> \copyright Copyright 2005-\today, the mHM Developers, Luis Samaniego, Sabine Attinger: All rights reserved.
57!! mHM is released under the LGPLv3+ license \license_note
58!> \ingroup f_mpr
59program mpr_driver
60
61 use mo_message, only : message
62 use mo_string_utils, only : separator
63 use mo_mpr_eval, only : mpr_eval
64 use mo_read_wrapper, only : read_data
66 USE mo_common_read_config, ONLY : common_read_config ! Read main configuration files
68 use mo_timer, only : timers_init
71 use mo_mpr_file, only : &
72 file_namelist_mpr_param, & ! filename of namelist: mhm model parameter
73 file_namelist_mpr ! file containing main configurations
74 use mo_kind, only: dp
75
76 implicit none
77
78 ! --------------------------------------------------------------------------
79 ! INITIALIZE
80 ! --------------------------------------------------------------------------
83
84 ! Start timings
85 call timers_init
86
87 call read_data()
88
89 call mpr_initialize()
90
91 ! -----------------------------------------------------------------------
92 ! EXECUTION
93 ! -----------------------------------------------------------------------
94 call mpr_eval()
95
96 ! --------------------------------------------------------------------------
97 ! WRITE OUTPUT
98 ! --------------------------------------------------------------------------
99 if (write_restart) then
101 end if
102 ! --------------------------------------------------------------------------
103 ! FINISH UP
104 ! --------------------------------------------------------------------------
105 call message(separator)
106 call message('MPR: Finished!')
107 call message(separator)
108end program mpr_driver
109#else
110
111!> \brief dummy module such that this file is never empty for compilation
113 implicit none
114end module dummy_mpr
115#endif
dummy module such that this file is never empty for compilation
Reading of main model configurations.
subroutine, public common_read_config(file_namelist)
Read main configurations commonly used by mHM, mRM and MPR.
Provides structures needed by mHM, mRM and/or mpr.
character(256), dimension(:), allocatable, public mhmfilerestartout
logical, public write_restart
Runs MPR.
subroutine, public mpr_eval(parameterset, opti_domain_indices)
Runs MPR and writes to global effective parameters.
Provides file names and units for mRM.
character(len=*), parameter file_namelist_mpr_param
Parameter namelists file name.
character(len=*), parameter file_namelist_mpr
Namelist file name.
subroutine, public mpr_read_config(file_namelist, file_namelist_param)
Read the general config of mpr.
reading and writing states, fluxes and configuration for restart of mHM.
subroutine, public write_mpr_restart_files(outfile)
write restart files for each domain
Startup procedures for mHM.
subroutine, public mpr_initialize
Initialize main mHM variables.
Wrapper for all reading routines.
subroutine, public read_data(laiper)
Reads data.