LCOV - code coverage report
Current view: top level - src/postprocessors - PorousFlowPlotQuantity.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 17 17 100.0 %
Date: 2017-11-18 13:30:36 Functions: 9 9 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /****************************************************************/
       2             : /* MOOSE - Multiphysics Object Oriented Simulation Environment  */
       3             : /*                                                              */
       4             : /*          All contents are licensed under LGPL V2.1           */
       5             : /*             See LICENSE for full restrictions                */
       6             : /****************************************************************/
       7             : 
       8             : #include "PorousFlowPlotQuantity.h"
       9             : #include "PorousFlowSumQuantity.h"
      10             : 
      11             : template <>
      12             : InputParameters
      13          32 : validParams<PorousFlowPlotQuantity>()
      14             : {
      15          32 :   InputParameters params = validParams<GeneralPostprocessor>();
      16          96 :   params.addRequiredParam<UserObjectName>(
      17          32 :       "uo", "PorousFlowSumQuantity user object name that holds the required information");
      18          64 :   params.addClassDescription("Extracts the value from the PorousFlowSumQuantity UserObject");
      19          32 :   return params;
      20             : }
      21             : 
      22          32 : PorousFlowPlotQuantity::PorousFlowPlotQuantity(const InputParameters & parameters)
      23          64 :   : GeneralPostprocessor(parameters), _total_mass(getUserObject<PorousFlowSumQuantity>("uo"))
      24             : {
      25          32 : }
      26             : 
      27          32 : PorousFlowPlotQuantity::~PorousFlowPlotQuantity() {}
      28             : 
      29             : void
      30         156 : PorousFlowPlotQuantity::initialize()
      31             : {
      32         156 : }
      33             : 
      34             : void
      35         156 : PorousFlowPlotQuantity::execute()
      36             : {
      37         156 : }
      38             : 
      39             : PostprocessorValue
      40         156 : PorousFlowPlotQuantity::getValue()
      41             : {
      42         156 :   return _total_mass.getValue();
      43        2499 : }

Generated by: LCOV version 1.11