https://mooseframework.inl.gov
src
postprocessors
NumLinearIterations.C
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#include "
NumLinearIterations.h
"
11
12
#include "
FEProblem.h
"
13
#include "
SubProblem.h
"
14
#include "
SystemBase.h
"
15
16
registerMooseObject
(
"MooseApp"
,
NumLinearIterations
);
17
18
InputParameters
19
NumLinearIterations::validParams
()
20
{
21
InputParameters
params =
GeneralPostprocessor::validParams
();
22
params.
addClassDescription
(
"Compute the number of linear iterations."
);
23
return
params;
24
}
25
26
NumLinearIterations::NumLinearIterations
(
const
InputParameters
& parameters)
27
:
GeneralPostprocessor
(parameters)
28
{
29
}
30
31
Real
32
NumLinearIterations::getValue
()
const
33
{
34
return
_subproblem
.
nLinearIterations
(
_sys
.
number
());
35
}
SubProblem.h
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:65
GeneralPostprocessor
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
Definition:
GeneralPostprocessor.h:21
NumLinearIterations::NumLinearIterations
NumLinearIterations(const InputParameters ¶meters)
Definition:
NumLinearIterations.C:26
UserObject::_subproblem
SubProblem & _subproblem
Reference to the Subproblem for this user object.
Definition:
UserObject.h:208
GeneralPostprocessor::validParams
static InputParameters validParams()
Definition:
GeneralPostprocessor.C:13
NumLinearIterations
Definition:
NumLinearIterations.h:14
registerMooseObject
registerMooseObject("MooseApp", NumLinearIterations)
NumLinearIterations.h
SubProblem::nLinearIterations
virtual unsigned int nLinearIterations(const unsigned int nl_sys_num) const
Definition:
SubProblem.C:766
UserObject::_sys
SystemBase & _sys
Reference to the system object for this user object.
Definition:
UserObject.h:215
SystemBase::number
unsigned int number() const
Gets the number of this system.
Definition:
SystemBase.C:1149
FEProblem.h
SystemBase.h
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
NumLinearIterations::validParams
static InputParameters validParams()
Definition:
NumLinearIterations.C:19
InputParameters::addClassDescription
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
Definition:
InputParameters.C:81
NumLinearIterations::getValue
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
Definition:
NumLinearIterations.C:32
Generated on Sun Aug 24 2025 13:53:48 for https://mooseframework.inl.gov by
1.8.14