LCOV - code coverage report
Current view: top level - src/postprocessors - PorousFlowPlotQuantity.C (source / functions) Hit Total Coverage
Test: idaholab/moose porous_flow: #31405 (292dce) with base fef103 Lines: 15 16 93.8 %
Date: 2025-09-04 07:55:56 Functions: 7 7 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             : #include "PorousFlowPlotQuantity.h"
      11             : #include "PorousFlowSumQuantity.h"
      12             : 
      13             : registerMooseObject("PorousFlowApp", PorousFlowPlotQuantity);
      14             : 
      15             : InputParameters
      16         946 : PorousFlowPlotQuantity::validParams()
      17             : {
      18         946 :   InputParameters params = GeneralPostprocessor::validParams();
      19        1892 :   params.addRequiredParam<UserObjectName>(
      20             :       "uo", "PorousFlowSumQuantity user object name that holds the required information");
      21         946 :   params.addClassDescription("Extracts the value from the PorousFlowSumQuantity UserObject");
      22         946 :   return params;
      23           0 : }
      24             : 
      25         473 : PorousFlowPlotQuantity::PorousFlowPlotQuantity(const InputParameters & parameters)
      26         473 :   : GeneralPostprocessor(parameters), _total_mass(getUserObject<PorousFlowSumQuantity>("uo"))
      27             : {
      28         473 : }
      29             : 
      30         866 : PorousFlowPlotQuantity::~PorousFlowPlotQuantity() {}
      31             : 
      32             : void
      33        3281 : PorousFlowPlotQuantity::initialize()
      34             : {
      35        3281 : }
      36             : 
      37             : void
      38        3281 : PorousFlowPlotQuantity::execute()
      39             : {
      40        3281 : }
      41             : 
      42             : PostprocessorValue
      43        3281 : PorousFlowPlotQuantity::getValue() const
      44             : {
      45        3281 :   return _total_mass.getValue();
      46             : }

Generated by: LCOV version 1.14