LCOV - code coverage report
Current view: top level - src/mfem/functormaterials - MFEMFunctorMaterial.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 17 19 89.5 %
Date: 2026-05-29 20:35:17 Functions: 3 4 75.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             : #ifdef MOOSE_MFEM_ENABLED
      11             : 
      12             : #include "MFEMFunctorMaterial.h"
      13             : #include "MFEMProblem.h"
      14             : 
      15             : InputParameters
      16        4722 : MFEMFunctorMaterial::validParams()
      17             : {
      18        4722 :   InputParameters params = MFEMObject::validParams();
      19        4722 :   params += MFEMBlockRestrictable::validParams();
      20        4722 :   params += MFEMBoundaryRestrictable::validParams();
      21             : 
      22        9444 :   params.addClassDescription(
      23             :       "Base class for declaration of material properties to add to MFEM problems.");
      24        9444 :   params.registerBase("FunctorMaterial");
      25        4722 :   params.registerSystemAttributeName("FunctorMaterial");
      26        9444 :   params.addPrivateParam<bool>("_neighbor", false);
      27        9444 :   params.addPrivateParam<bool>("_interface", false);
      28        4722 :   return params;
      29           0 : }
      30             : 
      31         265 : MFEMFunctorMaterial::MFEMFunctorMaterial(const InputParameters & parameters)
      32             :   : MFEMObject(parameters),
      33         265 :     MFEMBlockRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh()),
      34         265 :     MFEMBoundaryRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh()),
      35         795 :     _properties(getMFEMProblem().getCoefficients())
      36             : {
      37         265 :   if (isSubdomainRestricted() && isBoundaryRestricted())
      38           0 :     paramError("boundary", "Cannot specify both block and boundary parameters");
      39         265 : }
      40             : 
      41         265 : MFEMFunctorMaterial::~MFEMFunctorMaterial() {}
      42             : 
      43             : #endif

Generated by: LCOV version 1.14