LCOV - code coverage report
Current view: top level - src/postprocessors - RichardsPlotQuantity.C (source / functions) Hit Total Coverage
Test: idaholab/moose richards: #31405 (292dce) with base fef103 Lines: 14 15 93.3 %
Date: 2025-09-04 07:56:35 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 "RichardsPlotQuantity.h"
      11             : #include "RichardsSumQuantity.h"
      12             : 
      13             : registerMooseObject("RichardsApp", RichardsPlotQuantity);
      14             : 
      15             : InputParameters
      16         104 : RichardsPlotQuantity::validParams()
      17             : {
      18         104 :   InputParameters params = GeneralPostprocessor::validParams();
      19         208 :   params.addRequiredParam<UserObjectName>("uo", "user object name that has the total mass value");
      20             : 
      21         104 :   return params;
      22           0 : }
      23             : 
      24          52 : RichardsPlotQuantity::RichardsPlotQuantity(const InputParameters & parameters)
      25          52 :   : GeneralPostprocessor(parameters), _total_mass(getUserObject<RichardsSumQuantity>("uo"))
      26             : {
      27          52 : }
      28             : 
      29          96 : RichardsPlotQuantity::~RichardsPlotQuantity() {}
      30             : 
      31             : void
      32        1398 : RichardsPlotQuantity::initialize()
      33             : {
      34        1398 : }
      35             : 
      36             : void
      37        1398 : RichardsPlotQuantity::execute()
      38             : {
      39        1398 : }
      40             : 
      41             : PostprocessorValue
      42        1398 : RichardsPlotQuantity::getValue() const
      43             : {
      44        1398 :   return _total_mass.getValue();
      45             : }

Generated by: LCOV version 1.14