24 "FINAL INITIAL_BEFORE_PRESET INITIAL_AFTER_PRESET PRE_SMO INITIAL CURRENT COMPUTE",
"FINAL");
25 params.
addParam<
MooseEnum>(
"residual_type", residual_types,
"Type of residual to be reported.");
33 mooseDeprecated(
"INITIAL_BEFORE_PRESET is deprecated, use PRE_SMO instead.");
35 mooseDeprecated(
"INITIAL_AFTER_PRESET is deprecated, use INITIAL instead.");
49 LibmeshPetscCall(SNESGetFunctionNorm(snes, &
norm));
59 mooseError(
"Dynamic cast to FEProblemBase failed in Residual Postprocessor");
66 residual = nl_sys.initialResidual();
void mooseDeprecated(Args &&... args) const
static InputParameters validParams()
Real preSMOResidual() const
The pre-SMO residual.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
registerMooseObject("MooseApp", Residual)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
SubProblem & _subproblem
Reference to the Subproblem for this user object.
virtual Real finalNonlinearResidual(const unsigned int nl_sys_num) const
virtual Real getValue() const override
This will return the final nonlinear residual.
static InputParameters validParams()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
NonlinearSystemBase & getNonlinearSystemBase(const unsigned int sys_num)
SystemBase & _sys
Reference to the system object for this user object.
unsigned int number() const
Gets the number of this system.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
Residual(const InputParameters ¶meters)
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
Real computeResidualL2Norm(NonlinearSystemBase &sys)
Computes the residual of a nonlinear system using whatever is sitting in the current solution vector ...