68 use mo_cli,
only: cli_parser
71 use mo_os,
only: change_dir
75 type(cli_parser) :: parser
77 parser = cli_parser( &
78 description=
"The mesoscale hydrological model - mHM", &
79 add_version_option=.true., &
82 call parser%add_option( &
85 help=
"The desired working directory (optional).")
87 call parser%add_option( &
93 help=
"The mHM configuration namelist.")
95 call parser%add_option( &
100 default=
"mhm_parameter.nml", &
101 help=
"The mHM parameter namelist.")
103 call parser%add_option( &
108 default=
"mhm_outputs.nml", &
109 help=
"The mHM output namelist.")
111 call parser%add_option( &
116 default=
"mrm_outputs.nml", &
117 help=
"The mRM output namelist.")
119 call parser%add_option( &
123 help=
"Decrease verbosity level.")
132 mrm_file_defoutput = parser%option_value(
"mrm_output")
135 if (parser%option_was_read(
"cwd"))
call change_dir(parser%option_value(
"cwd"))
141 use mo_message,
only: show_msg, show_err
143 integer(i4),
intent(in),
optional :: level
144 integer(i4) :: level_
148 if (
present(level) ) level_ = level
149 if ( level_ > 0 ) show_err = .true.
150 if ( level_ > 1 ) show_msg = .true.
Provides file names and units for mHM.
character(:), allocatable file_namelist_mhm_param
Parameter namelists file name.
character(:), allocatable file_namelist_mhm
Namelist file name.
character(len=*), parameter version
Current mHM model version (will be set to )
character(:), allocatable file_defoutput
file defining mHM's outputs
Module to parse command line arguments of mHM.
subroutine, public set_verbosity_level(level)
Set the verbosity level of mHM.
subroutine, public parse_command_line()
parse the given command line arguments.
Provides file names and units for mRM.