Go to the documentation of this file.
68 template<
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;
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.
ignore()
Constructor deactivates any previously active SIGFPE handler.
static void unset(bool verbose=false)
Deactivate SIGFPE signal handler and NaN memory initialisation.
static void fillNan(UList< scalar > &list)
Fill data block with NaN values.
~ignore()
Destructor restores the original state of SIGFPE handler.
Set up trapping for floating point exceptions (signal FPE).
Helper to locally ignore SIGFPE handling.
static bool requested()
Check if SIGFPE signals handler is to be enabled.
void restore()
Restore the original state of SIGFPE handler.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...