Loading...
Searching...
No Matches
benchmark_warning

Definition

Provides methods for displaying warning messages.

Examples

The following example demonstrates some of the methods found in the benchmark_warning module.

The first example shows how to use the method warning_debug .

use benchmark_warning
#ifdef _DEBUG
#endif

The output message is the following

<!> WARNING <!>
DEBUG profile detected. The results might be unreliable.

The second example shows how to use the method warning_maxcalls .

use benchmark_warning
end if

The output message is the following

<!> WARNING <!>
Maximum number of calls reached for some cases. Steady state may not have been reached for all runs.

Remarks

The call to the subroutine warning_maxcalls is bound to the value of the logical variable display_maxcall_warning . The use if that switch prevents calling the same warning multiple times when used in a loop.

Variables

logical, public display_maxcall_warning = .false.
 Switch to control the display of the warning message.
 

Methods

◆ warning_debug()

subroutine, public warning_debug

Warning triggered when a DEBUG profile is detected.

Remarks

Definition at line 50 of file Warning.f90.

◆ warning_maxcalls()

subroutine, public warning_maxcalls

Warning triggered when the maximum number of function calls is readched. The maximum value can be set in runner_options .

Remarks

Definition at line 65 of file Warning.f90.