Line data Source code
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 14553 : NumLinearIterations::validParams() 20 : { 21 14553 : InputParameters params = GeneralPostprocessor::validParams(); 22 14553 : params.addClassDescription("Compute the number of linear iterations."); 23 14553 : return params; 24 0 : } 25 : 26 144 : NumLinearIterations::NumLinearIterations(const InputParameters & parameters) 27 144 : : GeneralPostprocessor(parameters) 28 : { 29 144 : } 30 : 31 : Real 32 256 : NumLinearIterations::getValue() const 33 : { 34 256 : return _subproblem.nLinearIterations(_sys.number()); 35 : }