LCOV - code coverage report
Current view: top level - src/materials - PorousFlowPermeabilityConst.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 17 17 100.0 %
Date: 2017-11-21 14:47:27 Functions: 5 5 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 "PorousFlowPermeabilityConst.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12         140 : validParams<PorousFlowPermeabilityConst>()
      13             : {
      14         140 :   InputParameters params = validParams<PorousFlowPermeabilityBase>();
      15         420 :   params.addRequiredParam<RealTensorValue>(
      16             :       "permeability",
      17         140 :       "The permeability tensor (usually in m^2), which is assumed constant for this material");
      18         280 :   params.addClassDescription(
      19         140 :       "This Material calculates the permeability tensor assuming it is constant");
      20         140 :   return params;
      21             : }
      22             : 
      23         420 : PorousFlowPermeabilityConst::PorousFlowPermeabilityConst(const InputParameters & parameters)
      24             :   : PorousFlowPermeabilityBase(parameters),
      25        1260 :     _input_permeability(getParam<RealTensorValue>("permeability"))
      26             : {
      27         420 : }
      28             : 
      29             : void
      30     4043674 : PorousFlowPermeabilityConst::computeQpProperties()
      31             : {
      32     8087348 :   _permeability_qp[_qp] = _input_permeability;
      33     8087348 :   _dpermeability_qp_dvar[_qp].assign(_num_var, RealTensorValue());
      34     8087348 :   _dpermeability_qp_dgradvar[_qp].resize(LIBMESH_DIM);
      35    28305718 :   for (unsigned i = 0; i < LIBMESH_DIM; ++i)
      36    24262044 :     _dpermeability_qp_dgradvar[_qp][i].assign(_num_var, RealTensorValue());
      37     4046173 : }

Generated by: LCOV version 1.11