Scope guard for starting and stopping Floating Point Exception Trapping. More...
#include <FloatingPointExceptionGuard.h>
Public Member Functions | |
FloatingPointExceptionGuard (const MooseApp &moose_app) | |
Instantiation turns on FPE Trapping as long as trapping is enabled on the application. More... | |
~FloatingPointExceptionGuard () | |
Stop FPE Trapping on destruction. More... | |
Private Attributes | |
const bool | _trapping_enabled |
Determine whether or not PFE trapping needs to be toggled off. More... | |
Scope guard for starting and stopping Floating Point Exception Trapping.
Definition at line 18 of file FloatingPointExceptionGuard.h.
|
inline |
Instantiation turns on FPE Trapping as long as trapping is enabled on the application.
By default trapping is enabled when the DEBUG symbol is defined (dbg mode), but can be overridden and turned on and off for any particular simulation run.
Definition at line 26 of file FloatingPointExceptionGuard.h.
|
inline |
Stop FPE Trapping on destruction.
Definition at line 36 of file FloatingPointExceptionGuard.h.
|
private |
Determine whether or not PFE trapping needs to be toggled off.
Definition at line 44 of file FloatingPointExceptionGuard.h.
Referenced by FloatingPointExceptionGuard(), and ~FloatingPointExceptionGuard().