LCOV - code coverage report
Current view: top level - src/materials - PorousFlowThermalConductivityBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose porous_flow: #32971 (54bef8) with base c6cf66 Lines: 13 15 86.7 %
Date: 2026-05-29 20:38: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 "PorousFlowThermalConductivityBase.h"
      11             : 
      12             : template <bool is_ad>
      13             : InputParameters
      14        1676 : PorousFlowThermalConductivityBaseTempl<is_ad>::validParams()
      15             : {
      16        1676 :   InputParameters params = PorousFlowMaterialVectorBase::validParams();
      17        1676 :   params.set<bool>("at_nodes") = false;
      18        1676 :   params.set<std::string>("pf_material_type") = "thermal_conductivity";
      19        1676 :   params.addClassDescription("Base class Material for thermal conductivity");
      20        1676 :   return params;
      21           0 : }
      22             : 
      23             : template <bool is_ad>
      24        1296 : PorousFlowThermalConductivityBaseTempl<is_ad>::PorousFlowThermalConductivityBaseTempl(
      25             :     const InputParameters & parameters)
      26             :   : PorousFlowMaterialVectorBase(parameters),
      27        1296 :     _la_qp(declareGenericProperty<RealTensorValue, is_ad>("PorousFlow_thermal_conductivity_qp")),
      28        1296 :     _dla_qp_dvar(is_ad ? nullptr
      29        1236 :                        : &declareProperty<std::vector<RealTensorValue>>(
      30        1296 :                              "dPorousFlow_thermal_conductivity_qp_dvar"))
      31             : {
      32        1296 :   if (_nodal_material == true)
      33           0 :     mooseError("PorousFlowThermalConductivity classes are only defined for at_nodes = false");
      34        1296 : }
      35             : 
      36             : template class PorousFlowThermalConductivityBaseTempl<false>;
      37             : template class PorousFlowThermalConductivityBaseTempl<true>;

Generated by: LCOV version 1.14