LCOV - code coverage report
Current view: top level - src/materials - PorousFlowPorosityBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose porous_flow: #31405 (292dce) with base fef103 Lines: 18 19 94.7 %
Date: 2025-09-04 07:55:56 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #include "PorousFlowPorosityBase.h"
      11             : 
      12             : template <bool is_ad>
      13             : InputParameters
      14       49410 : PorousFlowPorosityBaseTempl<is_ad>::validParams()
      15             : {
      16       49410 :   InputParameters params = PorousFlowMaterialVectorBase::validParams();
      17       98820 :   params.addPrivateParam<std::string>("pf_material_type", "porosity");
      18       49410 :   params.addClassDescription("Base class Material for porosity");
      19       49410 :   return params;
      20           0 : }
      21             : 
      22             : template <bool is_ad>
      23       38600 : PorousFlowPorosityBaseTempl<is_ad>::PorousFlowPorosityBaseTempl(const InputParameters & parameters)
      24             :   : PorousFlowMaterialVectorBase(parameters),
      25       18951 :     _porosity(_nodal_material ? declareGenericProperty<Real, is_ad>("PorousFlow_porosity_nodal")
      26       77898 :                               : declareGenericProperty<Real, is_ad>("PorousFlow_porosity_qp")),
      27       76066 :     _dporosity_dvar(is_ad ? nullptr
      28       37466 :                     : _nodal_material
      29       18951 :                         ? &declareProperty<std::vector<Real>>("dPorousFlow_porosity_nodal_dvar")
      30       55981 :                         : &declareProperty<std::vector<Real>>("dPorousFlow_porosity_qp_dvar")),
      31       38600 :     _dporosity_dgradvar(
      32       37466 :         is_ad ? nullptr
      33       37466 :         : _nodal_material
      34       18951 :             ? &declareProperty<std::vector<RealGradient>>("dPorousFlow_porosity_nodal_dgradvar")
      35       94581 :             : &declareProperty<std::vector<RealGradient>>("dPorousFlow_porosity_qp_dgradvar"))
      36             : {
      37       38600 : }
      38             : 
      39             : template class PorousFlowPorosityBaseTempl<false>;
      40             : template class PorousFlowPorosityBaseTempl<true>;

Generated by: LCOV version 1.14