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 mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
void mooseDeprecated(Args &&... args)
Emit a deprecated code/feature message with the given stringified, concatenated args.
registerMooseObject("MooseApp", Residual)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Real computeResidualL2Norm(NonlinearSystemBase &sys)
Computes the residual of a nonlinear system using whatever is sitting in the current solution vector ...
NonlinearSystemBase & getNonlinearSystemBase(const unsigned int sys_num)
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Real preSMOResidual() const
The pre-SMO residual.
Residual(const InputParameters ¶meters)
static InputParameters validParams()
virtual Real getValue() const override
This will return the final nonlinear residual.
virtual Real finalNonlinearResidual(const unsigned int nl_sys_num) const
unsigned int number() const
Gets the number of this system.
SubProblem & _subproblem
Reference to the Subproblem for this user object.
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
SystemBase & _sys
Reference to the system object for this user object.