LCOV - code coverage report
Current view: top level - src/materials - PorousFlowNearestQp.C (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 12 13 92.3 %
Date: 2017-11-18 13:30:36 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 "PorousFlowNearestQp.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12           1 : validParams<PorousFlowNearestQp>()
      13             : {
      14           1 :   InputParameters params = validParams<PorousFlowMaterial>();
      15           2 :   params.set<bool>("nodal_material") = true;
      16           2 :   params.addClassDescription("Provides the nearest quadpoint to a node in each element");
      17           1 :   return params;
      18             : }
      19             : 
      20           3 : PorousFlowNearestQp::PorousFlowNearestQp(const InputParameters & parameters)
      21             :   : PorousFlowMaterial(parameters),
      22           6 :     _nearest_qp(declareProperty<unsigned>("PorousFlow_nearestqp_nodal"))
      23             : {
      24           9 :   if (getParam<bool>("nodal_material") == false)
      25           0 :     mooseError("PorousFlowNearestQp must be a nodal material");
      26           3 : }
      27             : 
      28             : void
      29         848 : PorousFlowNearestQp::computeQpProperties()
      30             : {
      31        1696 :   _nearest_qp[_qp] = nearestQP(_qp);
      32        3347 : }

Generated by: LCOV version 1.11