5.13.2-dev0
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
mo_mhm_cli Module Reference

Module to parse command line arguments of mHM. More...

Functions/Subroutines

subroutine, public parse_command_line ()
 parse the given command line arguments.
 
subroutine, public set_verbosity_level (level)
 Set the verbosity level of mHM.
 

Detailed Description

Module to parse command line arguments of mHM.

Version
0.1
Authors
Sebastian Mueller
Date
Oct 2021

A simple parser for command line arguments for mHM. You can pass the path to mhm.nml, mhm_parameters.nml, mhm_outputs.nml and mrm_outputs.nml

You can also pass the CWD as plain last argument and get a help or version text.

The mesoscale hydrological model - mHM
Usage: mhm [options] <cwd>
Options:
<cwd>
Description: The desired working directory (optional).
--help / -h
Description: Print this help message.
--version / -V
Description: Print the version of the program.
--nml / -n <path>
Description: The mHM configuration namelist.
Default: mhm.nml
--parameter / -p <path>
Description: The mHM parameter namelist.
Default: mhm_parameter.nml
--mhm_output / -o <path>
Description: The mHM output namelist.
Default: mhm_output.nml
--mrm_output / -r <path>
Description: The mRM output namelist.
Default: mrm_output.nml
--quiet / -q
Description: Decrease verbosity level.
Can be repeated.

Function/Subroutine Documentation

◆ parse_command_line()

subroutine, public mo_mhm_cli::parse_command_line

parse the given command line arguments.

Definition at line 67 of file mo_mhm_cli.f90.

References mo_file::file_defoutput, mo_file::file_namelist_mhm, mo_file::file_namelist_mhm_param, set_verbosity_level(), and mo_file::version.

Referenced by mhm_driver().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_verbosity_level()

subroutine, public mo_mhm_cli::set_verbosity_level ( integer(i4), intent(in), optional  level)

Set the verbosity level of mHM.

Parameters
[in]levelverbosity level (0: no output, 1: errors, 2: all)

Definition at line 140 of file mo_mhm_cli.f90.

Referenced by mo_clean_up::deallocate_global_variables(), parse_command_line(), and model::set_verbosity().

Here is the caller graph for this function: