LCOV - code coverage report
Current view: top level - src/materials - PorousFlowMaterialBase.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 10 13 76.9 %
Date: 2017-11-21 14:47:27 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 "PorousFlowMaterialBase.h"
       9             : #include "Conversion.h"
      10             : 
      11             : template <>
      12             : InputParameters
      13         588 : validParams<PorousFlowMaterialBase>()
      14             : {
      15         588 :   InputParameters params = validParams<PorousFlowMaterial>();
      16        1764 :   params.addRequiredParam<unsigned int>("phase", "The phase number");
      17        1176 :   params.addClassDescription("Base class for PorousFlow materials");
      18         588 :   return params;
      19             : }
      20             : 
      21        1764 : PorousFlowMaterialBase::PorousFlowMaterialBase(const InputParameters & parameters)
      22             :   : DerivativeMaterialInterface<PorousFlowMaterial>(parameters),
      23        5292 :     _phase_num(getParam<unsigned int>("phase")),
      24        5292 :     _phase(Moose::stringify(_phase_num))
      25             : {
      26        1764 :   if (_phase_num >= _dictator.numPhases())
      27             :     mooseError("PorousFlowMaterial: The Dictator proclaims that the number of fluid phases is ",
      28           0 :                _dictator.numPhases(),
      29             :                " while you have foolishly entered phase = ",
      30             :                _phase_num,
      31             :                " in ",
      32           0 :                _name,
      33           0 :                ".  Be aware that the Dictator does not tolerate mistakes.");
      34        4263 : }

Generated by: LCOV version 1.11