22 params.
addParam<
bool>(
"accumulate_over_step",
24 "When set to true, accumulates to count the total over all fixed point "
25 "iterations for each step");
36 _accumulate_over_step(getParam<bool>(
"accumulate_over_step")),
38 _time(-
std::numeric_limits<Real>::max())
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObject("MooseApp", NumNonlinearIterations)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual Real & time() const
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
NumNonlinearIterations is a postprocessor that reports the number of nonlinear iterations.
FEProblemBase * _fe_problem
Pointer to the FEProblemBase.
NumNonlinearIterations(const InputParameters ¶meters)
unsigned int _num_iters
Stores the nonlinear iteration count.
virtual void timestepSetup() override
Initialization to be done at each timestep.
virtual Real getValue() const override
Get the number of nonlinear iterations.
Real _time
Stores the last time this was executed.
bool _accumulate_over_step
True if we should accumulate over all nonlinear solves done as part of Picard iterations in a step.
static InputParameters validParams()
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
virtual unsigned int nNonlinearIterations(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.
SystemBase & _sys
Reference to the system object for this user object.