0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_message Module Reference

Write out concatenated strings. More...

Functions/Subroutines

character(len=32000) function process_arguments (t01, t02, t03, t04, t05, t06, t07, t08, t09, t10, t11, t12, t13, t14, t15, t16)
 
subroutine, public message (t01, t02, t03, t04, t05, t06, t07, t08, t09, t10, t11, t12, t13, t14, t15, t16, uni, advance, show, reset_format)
 Write out an error message to stdout.
 
subroutine, public error_message (t01, t02, t03, t04, t05, t06, t07, t08, t09, t10, t11, t12, t13, t14, t15, t16, uni, advance, show, raise, reset_format)
 Write out an error message to stderr and call stop 1.
 

Variables

logical, save, public show_msg = .true.
 global control switch to show normal messages
 
logical, save, public show_err = .true.
 global control switch to show error messages
 

Detailed Description

Write out concatenated strings.

Write out several strings concatenated on standard out or a given unit, either advancing or not.

Author
Matthias Cuntz, Sebastian Mueller
Date
Jul 2011, Dec 2019

Function/Subroutine Documentation

◆ error_message()

subroutine, public mo_message::error_message ( character(len = *), intent(in), optional  t01,
character(len = *), intent(in), optional  t02,
character(len = *), intent(in), optional  t03,
character(len = *), intent(in), optional  t04,
character(len = *), intent(in), optional  t05,
character(len = *), intent(in), optional  t06,
character(len = *), intent(in), optional  t07,
character(len = *), intent(in), optional  t08,
character(len = *), intent(in), optional  t09,
character(len = *), intent(in), optional  t10,
character(len = *), intent(in), optional  t11,
character(len = *), intent(in), optional  t12,
character(len = *), intent(in), optional  t13,
character(len = *), intent(in), optional  t14,
character(len = *), intent(in), optional  t15,
character(len = *), intent(in), optional  t16,
integer, intent(in), optional  uni,
character(len = *), intent(in), optional  advance,
logical, intent(in), optional  show,
logical, intent(in), optional  raise,
logical, intent(in), optional  reset_format 
)

Write out an error message to stderr and call stop 1.

Parameters
[in]t01optional string arguments
[in]t02optional string arguments
[in]t03optional string arguments
[in]t04optional string arguments
[in]t05optional string arguments
[in]t06optional string arguments
[in]t07optional string arguments
[in]t08optional string arguments
[in]t09optional string arguments
[in]t10optional string arguments
[in]t11optional string arguments
[in]t12optional string arguments
[in]t13optional string arguments
[in]t14optional string arguments
[in]t15optional string arguments
[in]t16optional string arguments
[in]uniUnit to write to (default: stderr)
[in]advanceadd linebreak after message, default: 'yes', else 'no'
[in]showcontrol if message should be shown (show_err as default)
[in]raisecontrol if an exception is raised with error code 1 (.true. as default)
[in]reset_formatReset formatting (default: .false.)

Definition at line 132 of file mo_message.F90.

References message(), mo_constants::nerr, and show_err.

Referenced by mo_nml::close_nml(), mo_eckhardt_filter::fit_alpha(), mo_cli::new_cli_parser(), mo_nml::open_nml(), mo_os::path_join::path_join_arr(), and mo_nml::position_nml().

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

◆ message()

subroutine, public mo_message::message ( character(len = *), intent(in), optional  t01,
character(len = *), intent(in), optional  t02,
character(len = *), intent(in), optional  t03,
character(len = *), intent(in), optional  t04,
character(len = *), intent(in), optional  t05,
character(len = *), intent(in), optional  t06,
character(len = *), intent(in), optional  t07,
character(len = *), intent(in), optional  t08,
character(len = *), intent(in), optional  t09,
character(len = *), intent(in), optional  t10,
character(len = *), intent(in), optional  t11,
character(len = *), intent(in), optional  t12,
character(len = *), intent(in), optional  t13,
character(len = *), intent(in), optional  t14,
character(len = *), intent(in), optional  t15,
character(len = *), intent(in), optional  t16,
integer, intent(in), optional  uni,
character(len = *), intent(in), optional  advance,
logical, intent(in), optional  show,
logical, intent(in), optional  reset_format 
)

Write out an error message to stdout.

Parameters
[in]t01optional string arguments
[in]t02optional string arguments
[in]t03optional string arguments
[in]t04optional string arguments
[in]t05optional string arguments
[in]t06optional string arguments
[in]t07optional string arguments
[in]t08optional string arguments
[in]t09optional string arguments
[in]t10optional string arguments
[in]t11optional string arguments
[in]t12optional string arguments
[in]t13optional string arguments
[in]t14optional string arguments
[in]t15optional string arguments
[in]t16optional string arguments
[in]uniUnit to write to (default: stdout)
[in]advanceadd linebreak after message, default: 'yes', else 'no'
[in]showcontrol if message should be shown (show_msg as default)
[in]reset_formatReset formatting (default: .false.)

Definition at line 75 of file mo_message.F90.

References mo_constants::nout, show_msg, and mo_logging::stput().

Referenced by error_message(), mo_nml::open_nml(), mo_os::path_join::path_join_arr(), and mo_utils::special_value::special_value_sp().

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

◆ process_arguments()

character(len = 32000) function mo_message::process_arguments ( character(len = *), intent(in), optional  t01,
character(len = *), intent(in), optional  t02,
character(len = *), intent(in), optional  t03,
character(len = *), intent(in), optional  t04,
character(len = *), intent(in), optional  t05,
character(len = *), intent(in), optional  t06,
character(len = *), intent(in), optional  t07,
character(len = *), intent(in), optional  t08,
character(len = *), intent(in), optional  t09,
character(len = *), intent(in), optional  t10,
character(len = *), intent(in), optional  t11,
character(len = *), intent(in), optional  t12,
character(len = *), intent(in), optional  t13,
character(len = *), intent(in), optional  t14,
character(len = *), intent(in), optional  t15,
character(len = *), intent(in), optional  t16 
)
private

Definition at line 31 of file mo_message.F90.

Variable Documentation

◆ show_err

logical, save, public mo_message::show_err = .true.

global control switch to show error messages

Definition at line 25 of file mo_message.F90.

Referenced by error_message().

◆ show_msg

logical, save, public mo_message::show_msg = .true.

global control switch to show normal messages

Definition at line 24 of file mo_message.F90.

Referenced by message().