68template<
class T>
class UList;
80 static bool switchFpe_;
84 static bool switchNan_;
87 static bool sigActive_;
90 static bool nanActive_;
96 static void sigHandler(
int);
121 static inline bool active()
134 static void set(
bool verbose=
false);
137 static void unset(
bool verbose=
false);
156 void operator=(
const ignore&) =
delete;
162 void operator=(
ignore&&) =
delete;
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Helper to locally ignore SIGFPE handling.
ignore()
Constructor deactivates any previously active SIGFPE handler.
~ignore()
Destructor restores the original state of SIGFPE handler.
void restore()
Restore the original state of SIGFPE handler.
Set up trapping for floating point exceptions (signal FPE).
static void fillNan(UList< scalar > &list)
Fill data block with NaN values.
static void set(bool verbose=false)
Activate SIGFPE signal handler when FOAM_SIGFPE is set.
static bool nanActive()
True if NaN memory initialisation is currently active.
static bool active()
True if SIGFPE handling is currently active.
static void unset(bool verbose=false)
Deactivate SIGFPE signal handler and NaN memory initialisation.
static bool requested()
Check if SIGFPE signals handler is to be enabled.