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 : #pragma once 11 : 12 : // MOOSE includes 13 : #include "GeneralPostprocessor.h" 14 : 15 : /** 16 : * Returns the number of fixed point iterations taken by the Executioner as a Postprocessor. 17 : */ 18 : class NumFixedPointIterations : public GeneralPostprocessor 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : NumFixedPointIterations(const InputParameters & parameters); 24 : 25 49054 : virtual void execute() override {} 26 49054 : virtual void initialize() override{}; 27 : 28 : virtual Real getValue() const override; 29 : 30 : protected: 31 : /// Amount by which to shift the count 32 : const int _count_shift; 33 : };