17 MooseEnum comparison_type(
"equals greater_than_equals less_than_equals greater_than less_than");
20 "The type of comparison to perform. Options are: " +
25 "Absolute tolerance used in comparisons");
34 _absolute_tolerance(getParam<
Real>(
"absolute_tolerance"))
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether two variables are equal within an absolute tolerance.
static constexpr Real TOLERANCE
static InputParameters validParams()
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
std::string getRawNames() const
Method for returning the raw name strings for this instance.
static InputParameters validParams()
bool comparisonIsTrue(const Real &a, const Real &b) const
Performs the selected comparison on the two values.
ComparisonType
Comparison type.
bool absoluteFuzzyLessThan(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether a variable is less than another variable within an absolute tolerance...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
ComparisonPostprocessor(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
bool absoluteFuzzyLessEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether a variable is less than or equal to another variable within an absolute tol...
bool absoluteFuzzyGreaterEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether a variable is greater than or equal to another variable within an absolute ...
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
bool absoluteFuzzyGreaterThan(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether a variable is greater than another variable within an absolute tolerance...
const ComparisonType _comparison_type
Type of comparison to perform.
const Real _absolute_tolerance
Absolute tolerance for "fuzzy" comparisons.