20 params.
addClassDescription(
"Report the time and iteration information for the simulation.");
23 "time timestep num_linear_iterations num_nonlinear_iterations num_fixed_point_iterations");
27 "The iteration information to output, if nothing is provided everything will be output.");
28 params.
addParam<NonlinearSystemName>(
29 "nl_sys",
"nl0",
"The nonlinear system that this should report iteration info for.");
36 _time_value(declareHelper<Real>(
"time", _dummy_real)),
37 _time_step_value(declareHelper<unsigned
int>(
"timestep", _dummy_unsigned_int)),
38 _num_linear(declareHelper<unsigned
int>(
"num_linear_iterations", _dummy_unsigned_int)),
39 _num_nonlinear(declareHelper<unsigned
int>(
"num_nonlinear_iterations", _dummy_unsigned_int)),
41 declareHelper<unsigned
int>(
"num_fixed_point_iterations", _dummy_unsigned_int)),
42 _nl_sys_num(_subproblem.nlSysNum(getParam<NonlinearSystemName>(
"nl_sys")))
registerMooseObject("MooseApp", IterationInfo)
void ErrorVector unsigned int
FixedPointSolve & fixedPointSolve()
unsigned int numFixedPointIts() const
Get the number of fixed point iterations performed Because this returns the number of fixed point ite...
Reporter object that has a single execution of the "execute" method for each execute flag.
static InputParameters validParams()
Report the time and iteration information for the simulation.
virtual void execute() override
Execute method.
IterationInfo(const InputParameters ¶meters)
static InputParameters validParams()
unsigned int & _num_nonlinear
unsigned int & _num_fixed_point
const unsigned int _nl_sys_num
The nonlinear system that this should report iteration info for.
unsigned int & _num_linear
unsigned int & _time_step_value
Executioner * getExecutioner() const
Retrieve the Executioner for this App.
MooseApp & _app
The MOOSE application this is associated with.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type.
virtual unsigned int nLinearIterations(const unsigned int nl_sys_num) const
virtual unsigned int nNonlinearIterations(const unsigned int nl_sys_num) const
int & _t_step
The number of the time step.
SubProblem & _subproblem
Reference to the Subproblem for this user object.