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")))
unsigned int & _num_nonlinear
virtual unsigned int nNonlinearIterations(const unsigned int nl_sys_num) const
Reporter object that has a single execution of the "execute" method for for each execute flag...
unsigned int & _num_linear
static InputParameters validParams()
const unsigned int _nl_sys_num
The nonlinear system that this should report iteration info for.
unsigned int & _time_step_value
static InputParameters validParams()
unsigned int numFixedPointIts() const
Get the number of fixed point iterations performed Because this returns the number of fixed point ite...
SubProblem & _subproblem
Reference to the Subproblem for this user object.
virtual void execute() override
Execute method.
IterationInfo(const InputParameters ¶meters)
int & _t_step
The number of the time step.
virtual unsigned int nLinearIterations(const unsigned int nl_sys_num) const
unsigned int & _num_fixed_point
MooseApp & _app
The MOOSE application this is associated with.
Executioner * getExecutioner() const
Retrieve the Executioner for this App.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Report the time and iteration information for the simulation.
registerMooseObject("MooseApp", IterationInfo)
FixedPointSolve & fixedPointSolve()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type...
void ErrorVector unsigned int