LCOV - code coverage report
Current view: top level - src/postprocessors - NumFixedPointIterations.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 9 10 90.0 %
Date: 2025-07-17 01:28:37 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          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             : // MOOSE includes
      11             : #include "NumFixedPointIterations.h"
      12             : #include "MooseApp.h"
      13             : #include "Executioner.h"
      14             : 
      15             : registerMooseObject("MooseApp", NumFixedPointIterations);
      16             : registerMooseObjectRenamed("MooseApp",
      17             :                            NumPicardIterations,
      18             :                            "06/30/2021 24:00",
      19             :                            NumFixedPointIterations);
      20             : 
      21             : InputParameters
      22       30454 : NumFixedPointIterations::validParams()
      23             : {
      24       30454 :   InputParameters params = GeneralPostprocessor::validParams();
      25       30454 :   params.addClassDescription(
      26             :       "Returns the number of fixed point iterations taken by the executioner.");
      27       30454 :   return params;
      28           0 : }
      29             : 
      30         960 : NumFixedPointIterations::NumFixedPointIterations(const InputParameters & parameters)
      31         960 :   : GeneralPostprocessor(parameters)
      32             : {
      33         960 : }
      34             : 
      35             : Real
      36       44593 : NumFixedPointIterations::getValue() const
      37             : {
      38       44593 :   return _app.getExecutioner()->fixedPointSolve().numFixedPointIts();
      39             : }

Generated by: LCOV version 1.14