Interface class for producing errors, warnings, or just quiet NaNs. More...
#include <NaNInterface.h>
Public Member Functions | |
NaNInterface (const MooseObject *moose_object) | |
Protected Types | |
enum | NaNMessage { NAN_MESSAGE_NONE = 0, NAN_MESSAGE_WARNING = 1, NAN_MESSAGE_ERROR = 2 } |
Protected Member Functions | |
Real | getNaN () const |
Produces errors, warnings, or just quiet NaNs. More... | |
template<typename... Args> | |
Real | getNaN (Args &&... args) const |
Protected Attributes | |
const MooseObject * | _moose_object |
enum NaNMessage | _emit_on_nan |
Raise mooseWarning or mooseError? More... | |
Interface class for producing errors, warnings, or just quiet NaNs.
For some objects it is desirable to continue running despite generation of NaN(s). This class provides an interface for choosing whether to throw an error, a warning, or nothing at all, just using a quiet NaN.
Definition at line 27 of file NaNInterface.h.
|
protected |
Enumerator | |
---|---|
NAN_MESSAGE_NONE | |
NAN_MESSAGE_WARNING | |
NAN_MESSAGE_ERROR |
Definition at line 33 of file NaNInterface.h.
NaNInterface::NaNInterface | ( | const MooseObject * | moose_object | ) |
Definition at line 33 of file NaNInterface.C.
|
inlineprotected |
Produces errors, warnings, or just quiet NaNs.
Definition at line 48 of file NaNInterface.h.
Referenced by StiffenedGasFluidProperties::c_from_v_e(), getNaN(), NaNInterfaceTestFluidProperties::p_from_v_e(), StiffenedGasFluidProperties::rho_from_p_s(), StiffenedGasFluidProperties::rho_from_p_T(), StiffenedGasFluidProperties::s_from_h_p(), StiffenedGasFluidProperties::s_from_p_T(), StiffenedGasFluidProperties::s_from_v_e(), IdealRealGasMixtureFluidProperties::v_from_p_T(), and IdealRealGasMixtureFluidProperties::xs_prim_from_p_T().
|
inlineprotected |
Definition at line 51 of file NaNInterface.h.
|
protected |
Raise mooseWarning or mooseError?
Definition at line 43 of file NaNInterface.h.
Referenced by getNaN().
|
protected |
Definition at line 40 of file NaNInterface.h.
Referenced by getNaN(), and NaNInterface().