MOM6
|
Routines for error handling and I/O management.
Functions/Subroutines | |
logical function, public | is_root_pe () |
This returns .true. if the current PE is the root PE. | |
subroutine, public | mom_mesg (message, verb, all_print) |
This provides a convenient interface for writing an informative comment. More... | |
subroutine, public | mom_error (level, message, all_print) |
This provides a convenient interface for writing an mpp_error message with run-time filter based on a verbosity. More... | |
subroutine, public | mom_set_verbosity (verb) |
This subroutine sets the level of verbosity filtering MOM error messages. More... | |
integer function, public | mom_get_verbosity () |
This subroutine gets the level of verbosity filtering MOM error messages. | |
logical function, public | mom_verbose_enough (verb) |
This tests whether the level of verbosity filtering MOM error messages is sufficient to write a message of verbosity level verb. More... | |
logical function, public | calltree_showquery () |
Returns True, if the verbosity>=6 indicating to show the call tree. | |
subroutine, public | calltree_enter (mesg, n) |
Writes a message about entering a subroutine if call tree reporting is active. More... | |
subroutine, public | calltree_leave (mesg) |
Writes a message about leaving a subroutine if call tree reporting is active. More... | |
subroutine, public | calltree_waypoint (mesg, n) |
Writes a message about reaching a milestone if call tree reporting is active. More... | |
subroutine, public | assert (logical_arg, msg) |
Issues a FATAL error if the assertion fails, i.e. the first argument is false. More... | |
Variables | |
integer | verbosity = 6 |
Verbosity level: 0 - FATAL messages only 1 - FATAL + WARNING messages only 2 - FATAL + WARNING + NOTE messages only [default] 3 - above + informational 4 - 5 - 6 - above + call tree 7 - 8 - 9 - anything and everything (also set with DEBUG=True) | |
integer | calltreeindentlevel = 0 |
The level of calling within the call tree. | |
subroutine, public mom_error_handler::assert | ( | logical, intent(in) | logical_arg, |
character(len=*), intent(in) | msg | ||
) |
Issues a FATAL error if the assertion fails, i.e. the first argument is false.
[in] | logical_arg | If false causes a FATAL error |
[in] | msg | Message to issue in case of failed assertion |
Definition at line 182 of file MOM_error_handler.F90.
subroutine, public mom_error_handler::calltree_enter | ( | character(len=*), intent(in) | mesg, |
integer, intent(in), optional | n | ||
) |
Writes a message about entering a subroutine if call tree reporting is active.
[in] | mesg | Message to write |
[in] | n | An optional integer to write at end of message |
Definition at line 130 of file MOM_error_handler.F90.
subroutine, public mom_error_handler::calltree_leave | ( | character(len=*) | mesg | ) |
Writes a message about leaving a subroutine if call tree reporting is active.
mesg | Message to write |
Definition at line 151 of file MOM_error_handler.F90.
subroutine, public mom_error_handler::calltree_waypoint | ( | character(len=*), intent(in) | mesg, |
integer, intent(in), optional | n | ||
) |
Writes a message about reaching a milestone if call tree reporting is active.
[in] | mesg | Message to write |
[in] | n | An optional integer to write at end of message |
Definition at line 161 of file MOM_error_handler.F90.
subroutine, public mom_error_handler::mom_error | ( | integer, intent(in) | level, |
character(len=*), intent(in) | message, | ||
logical, intent(in), optional | all_print | ||
) |
This provides a convenient interface for writing an mpp_error message with run-time filter based on a verbosity.
[in] | level | The verbosity level of this message |
[in] | message | A message to write out |
[in] | all_print | If present and true, any PEs are able to write this message. |
Definition at line 72 of file MOM_error_handler.F90.
subroutine, public mom_error_handler::mom_mesg | ( | character(len=*), intent(in) | message, |
integer, intent(in), optional | verb, | ||
logical, intent(in), optional | all_print | ||
) |
This provides a convenient interface for writing an informative comment.
[in] | message | A message to write out |
[in] | verb | A level of verbosity for this message |
[in] | all_print | If present and true, any PEs are able to write this message. |
Definition at line 53 of file MOM_error_handler.F90.
subroutine, public mom_error_handler::mom_set_verbosity | ( | integer, intent(in) | verb | ) |
This subroutine sets the level of verbosity filtering MOM error messages.
[in] | verb | A level of verbosity to set |
Definition at line 97 of file MOM_error_handler.F90.
logical function, public mom_error_handler::mom_verbose_enough | ( | integer, intent(in) | verb | ) |
This tests whether the level of verbosity filtering MOM error messages is sufficient to write a message of verbosity level verb.
[in] | verb | A level of verbosity to test |
Definition at line 116 of file MOM_error_handler.F90.