Classes | Public Member Functions | Static Public Member Functions | List of all members
sigFpe Class Reference

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)
 

Detailed Description

Set up trapping for floating point exceptions (signal FPE).

Defined by controlDict InfoSwitch entries:

Source files

Definition at line 69 of file sigFpe.H.

Constructor & Destructor Documentation

◆ sigFpe()

sigFpe ( )

Definition at line 127 of file sigFpe.C.

References Foam::BitOps::set().

Here is the call graph for this function:

◆ ~sigFpe()

~sigFpe ( )

Definition at line 146 of file sigFpe.C.

References sigFpe::unset().

Here is the call graph for this function:

Member Function Documentation

◆ requested()

bool requested ( )
static

Definition at line 170 of file sigFpe.C.

References isTrue().

Referenced by sigFpe::set().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ active()

static bool active ( )
inlinestatic

Definition at line 116 of file sigFpe.H.

◆ nanActive()

static bool nanActive ( )
inlinestatic

Definition at line 122 of file sigFpe.H.

◆ set()

void set ( bool  verbose = false)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unset()

void unset ( bool  verbose = false)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fillNan()

void fillNan ( UList< scalar > &  list)
static

Definition at line 270 of file sigFpe.C.

Referenced by dynamicRefineFvMesh::mapFields().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: