LCOV - code coverage report
Current view: top level - src/materials - PorousFlowPermeabilityBase.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 11 12 91.7 %
Date: 2017-11-18 13:30:36 Functions: 4 4 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 "PorousFlowPermeabilityBase.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12         150 : validParams<PorousFlowPermeabilityBase>()
      13             : {
      14         150 :   InputParameters params = validParams<PorousFlowMaterialVectorBase>();
      15         300 :   params.addClassDescription("Base class for material permeability");
      16         300 :   params.set<bool>("at_nodes") = false;
      17         150 :   return params;
      18             : }
      19             : 
      20         450 : PorousFlowPermeabilityBase::PorousFlowPermeabilityBase(const InputParameters & parameters)
      21             :   : PorousFlowMaterialVectorBase(parameters),
      22         900 :     _permeability_qp(declareProperty<RealTensorValue>("PorousFlow_permeability_qp")),
      23             :     _dpermeability_qp_dvar(
      24         900 :         declareProperty<std::vector<RealTensorValue>>("dPorousFlow_permeability_qp_dvar")),
      25             :     _dpermeability_qp_dgradvar(declareProperty<std::vector<std::vector<RealTensorValue>>>(
      26        2250 :         "dPorousFlow_permeability_qp_dgradvar"))
      27             : {
      28         450 :   if (_nodal_material == true)
      29           0 :     mooseError("PorousFlowPermeability classes are only defined for at_nodes = false");
      30        2949 : }

Generated by: LCOV version 1.11