|
| generic, public | assert_routine (condition, condition_str, line, file) |
| | Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred.
|
| generic, public | assert_routine (condition, condition_str, line, file) |
|
| procedure, nopass | abort_routine (line, file, msg) |
| | Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred.
|
|
| procedure, nopass, private | error_handling_assert_array_routine (condition, condition_str, line, file) |
| nopass, private | error_handling_assert_routine (condition, condition_str, line, file) |
| | Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred.
|
Definition at line 54 of file error_handling.f90.
◆ abort_routine()
| procedure, nopass error_handling_m::error_handling_t::abort_routine |
( |
integer, intent(in) | line, |
|
|
character(len=*), intent(in) | file, |
|
|
character(len=*), intent(in) | msg ) |
|
static |
Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred.
The abort routine should be kept for situations where the assert routine is not appropriate.
- Parameters
-
| [in] | line | (integer) : Line number where the error occurred |
| [in] | file | (character) : Name of file where error occurred |
| [in] | msg | (character) : Error message |
Definition at line 56 of file error_handling.f90.
◆ assert_routine() [1/2]
| generic, public error_handling_m::error_handling_t::assert_routine |
( |
logical, intent(in) | condition, |
|
|
character(len=*), intent(in) | condition_str, |
|
|
integer, intent(in) | line, |
|
|
character(len=*), intent(in) | file ) |
Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred.
The assert routine should be used for internal validity checks only. It is a safety mechanism to ensure that program bugs are found and fixed, with the idea that the code developer uses the file name and line number to inspect the source location where the assertion failure occurred and determine the cause. If you want to ERROR STOP as a result of invalid/improper input parameters, use the abort routine, with a useful error message.
- Parameters
-
| [in] | condition | (logical) : Logical condition to assert |
| [in] | condition_str | (character) : The condition as a string |
| [in] | line | (integer) : Line number where the assertion is made |
| [in] | file | (character) : Name of file where the assertion is made |
Definition at line 58 of file error_handling.f90.
References error_handling_m::error_handling_assert_array_routine(), and error_handling_m::error_handling_assert_routine().
◆ assert_routine() [2/2]
| generic, public error_handling_m::error_handling_t::assert_routine |
( |
logical, dimension(:), intent(in) | condition, |
|
|
character(len=*), intent(in) | condition_str, |
|
|
integer, intent(in) | line, |
|
|
character(len=*), intent(in) | file ) |
- Parameters
-
| [in] | condition | (logical(:)) : Array of logical conditions to assert |
| [in] | condition_str | (character) : The conditions as a string |
| [in] | line | (integer) : Line number where the assertion is made |
| [in] | file | (character) : Name of file where the assertion is made |
Definition at line 58 of file error_handling.f90.
◆ error_handling_assert_array_routine()
| procedure, nopass, private error_handling_m::error_handling_t::error_handling_assert_array_routine |
( |
logical, dimension(:), intent(in) | condition, |
|
|
character(len=*), intent(in) | condition_str, |
|
|
integer, intent(in) | line, |
|
|
character(len=*), intent(in) | file ) |
|
staticprivate |
- Parameters
-
| [in] | condition | (logical(:)) : Array of logical conditions to assert |
| [in] | condition_str | (character) : The conditions as a string |
| [in] | line | (integer) : Line number where the assertion is made |
| [in] | file | (character) : Name of file where the assertion is made |
Definition at line 57 of file error_handling.f90.
◆ error_handling_assert_routine()
| nopass, private error_handling_m::error_handling_t::error_handling_assert_routine |
( |
logical, intent(in) | condition, |
|
|
character(len=*), intent(in) | condition_str, |
|
|
integer, intent(in) | line, |
|
|
character(len=*), intent(in) | file ) |
|
staticprivate |
Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred.
The assert routine should be used for internal validity checks only. It is a safety mechanism to ensure that program bugs are found and fixed, with the idea that the code developer uses the file name and line number to inspect the source location where the assertion failure occurred and determine the cause. If you want to ERROR STOP as a result of invalid/improper input parameters, use the abort routine, with a useful error message.
- Parameters
-
| [in] | condition | (logical) : Logical condition to assert |
| [in] | condition_str | (character) : The condition as a string |
| [in] | line | (integer) : Line number where the assertion is made |
| [in] | file | (character) : Name of file where the assertion is made |
Definition at line 57 of file error_handling.f90.
The documentation for this type was generated from the following file: