LCOV - code coverage report
Current view: top level - src/materials - PorousFlowPorosityConst.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 16 16 100.0 %
Date: 2017-11-20 14:50:56 Functions: 6 6 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 "PorousFlowPorosityConst.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12         168 : validParams<PorousFlowPorosityConst>()
      13             : {
      14         168 :   InputParameters params = validParams<PorousFlowPorosityBase>();
      15         504 :   params.addRequiredCoupledVar("porosity", "The porosity (assumed constant for this material)");
      16         336 :   params.addClassDescription("This Material calculates the porosity assuming it is constant");
      17         168 :   return params;
      18             : }
      19             : 
      20         504 : PorousFlowPorosityConst::PorousFlowPorosityConst(const InputParameters & parameters)
      21        1008 :   : PorousFlowPorosityBase(parameters), _input_porosity(coupledValue("porosity"))
      22             : {
      23         504 : }
      24             : 
      25             : void
      26     4212562 : PorousFlowPorosityConst::initQpStatefulProperties()
      27             : {
      28    12637686 :   _porosity[_qp] = _input_porosity[_qp];
      29     4212562 : }
      30             : 
      31             : void
      32     4117518 : PorousFlowPorosityConst::computeQpProperties()
      33             : {
      34     4117518 :   initQpStatefulProperties();
      35             : 
      36             :   // The derivatives are zero for all time
      37     8235036 :   _dporosity_dvar[_qp].assign(_num_var, 0.0);
      38     8235036 :   _dporosity_dgradvar[_qp].assign(_num_var, RealGradient());
      39     4120017 : }

Generated by: LCOV version 1.11