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).
~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 |
Fill block of data with NaN.
Definition at line 46 of file sigFpe.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::jobInfo_, sigFpe::mallocNanActive_, Foam::Perr, and jobInfo::signalEnd().
Referenced by dynamicRefineFvMesh::refine().
|
static |
Flag to indicate mallocNan is enabled.
Definition at line 103 of file sigFpe.H.
Referenced by sigFpe::fillNan().