Set up trapping for floating point exceptions (signal FPE). More...
Classes | |
class | ignore |
Public Member Functions | |
sigFpe () | |
~sigFpe () | |
Static Public Member Functions | |
static bool | requested () |
static bool | active () |
static bool | nanActive () |
static void | set (bool verbose=false) |
static void | unset (bool verbose=false) |
static void | fillNan (UList< scalar > &list) |
Set up trapping for floating point exceptions (signal FPE).
Defined by controlDict InfoSwitch entries:
trapFpe
, this causes usage of uninitialized scalars to trigger an abort.trapFpe
setNaN
sigFpe | ( | ) |
Definition at line 127 of file sigFpe.C.
References Foam::BitOps::set().
~sigFpe | ( | ) |
Definition at line 146 of file sigFpe.C.
References sigFpe::unset().
|
static |
Definition at line 170 of file sigFpe.C.
References isTrue().
Referenced by sigFpe::set().
|
static |
Definition at line 176 of file sigFpe.C.
References Foam::endl(), Foam::Info, isTrue(), sigFpe::requested(), and Foam::setHandler().
Referenced by argList::parse(), and sigFpe::ignore::restore().
|
static |
Definition at line 234 of file sigFpe.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::Info, and Foam::resetHandler().
Referenced by sigFpe::ignore::ignore(), and sigFpe::~sigFpe().
|
static |
Definition at line 270 of file sigFpe.C.
Referenced by dynamicRefineFvMesh::mapFields().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.