www.mooseframework.org
ComparisonPostprocessor.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "GeneralPostprocessor.h"
13 
29 {
30 public:
32 
34 
35 protected:
44  bool comparisonIsTrue(const Real & a, const Real & b) const;
45 
47  enum class ComparisonType
48  {
49  EQUALS,
53  LESS_THAN
54  };
55 
58 
61 };
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
bool comparisonIsTrue(const Real &a, const Real &b) const
Performs the selected comparison on the two values.
ComparisonPostprocessor(const InputParameters &parameters)
Base class for comparing quantities and producing a boolean value.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.
const ComparisonType _comparison_type
Type of comparison to perform.
const Real _absolute_tolerance
Absolute tolerance for "fuzzy" comparisons.