LCOV - code coverage report
Current view: top level - src/postprocessors - NumResidualEvaluations.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 9 10 90.0 %
Date: 2026-05-29 20:35:17 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 "NumResidualEvaluations.h"
      12             : #include "FEProblem.h"
      13             : #include "SubProblem.h"
      14             : #include "NonlinearSystem.h"
      15             : 
      16             : registerMooseObject("MooseApp", NumResidualEvaluations);
      17             : 
      18             : InputParameters
      19        3103 : NumResidualEvaluations::validParams()
      20             : {
      21        3103 :   InputParameters params = GeneralPostprocessor::validParams();
      22        3103 :   params.addClassDescription("Returns the total number of residual evaluations performed.");
      23        3103 :   return params;
      24           0 : }
      25             : 
      26          21 : NumResidualEvaluations::NumResidualEvaluations(const InputParameters & parameters)
      27          21 :   : GeneralPostprocessor(parameters)
      28             : {
      29          21 : }
      30             : 
      31             : Real
      32         152 : NumResidualEvaluations::getValue() const
      33             : {
      34         152 :   return _fe_problem.getNonlinearSystemBase(_sys.number()).nResidualEvaluations();
      35             : }

Generated by: LCOV version 1.14