13 #include "libmesh/string_to_enum.h" 22 "Populate an auxiliary variable with the residual contribution of a variable.");
24 "The variable that is being debugged.");
30 _debug_var(_nl_sys.getVariable(_tid, getParam<NonlinearVariableName>(
"debug_variable"))),
31 _residual_copy(_nl_sys.residualGhosted())
38 if (var_order != debug_order || var_family != debug_family)
39 mooseError(
"A mismatch was found between family and order parameters for ",
44 this->getParam<std::string>(
"_object_name"));
45 if (!
_nodal && debug_order > 0)
46 mooseWarning(
"Residual output is approximate for variable order " +
MooseVariableFEBase & _debug_var
bool _nodal
Flag indicating if the AuxKernel is nodal.
NumericVector< Number > & _residual_copy
unsigned int number() const
Get variable number coming from libMesh.
const Node *const & _current_node
Current node (valid only for nodal kernels)
Auxiliary kernel for debugging convergence.
const std::string & name() const override
Get the variable name.
registerMooseObject("MooseApp", DebugResidualAux)
void mooseWarning(Args &&... args) const
Emits a warning prefixed with object name and type.
static InputParameters validParams()
virtual Real computeValue() override
Compute and return the value of the aux variable.
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
unsigned int number() const
Gets the number of this system.
std::string stringify(const T &t)
conversion to string
DebugResidualAux(const InputParameters ¶meters)
MooseVariableField< Real > & _var
This is a regular kernel so we cast to a regular MooseVariable.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
static InputParameters validParams()
Base class for creating new auxiliary kernels and auxiliary boundary conditions.