Set up trapping for floating point exceptions (signal FPE). More...
Public Member Functions | |
sigFpe () | |
Construct null. More... | |
~sigFpe () | |
Destructor. More... | |
void | set (const bool verbose) |
Activate SIGFPE signal handler when FOAM_SIGFPE is set. More... | |
Static Public Member Functions | |
static void | fillNan (UList< scalar > &) |
Fill block of data with NaN. More... | |
Static Public Attributes | |
static bool | mallocNanActive_ = false |
Flag to indicate mallocNan is enabled. More... | |
Set up trapping for floating point exceptions (signal FPE).
Controlled by two env vars:
~sigFpe | ( | ) |
Destructor.
Definition at line 119 of file sigFpe.C.
References Foam::abort(), Foam::env(), Foam::FatalError, and FatalErrorInFunction.
void set | ( | const bool | verbose | ) |
Activate SIGFPE signal handler when FOAM_SIGFPE is set.
Fill memory with NaN when FOAM_SETNAN is set
Definition at line 150 of file sigFpe.C.
References Foam::abort(), Foam::endl(), Foam::env(), Foam::FatalError, FatalErrorInFunction, and Foam::Info.
|
static |
|
static |