LCOV - code coverage report
Current view: top level - src/mfem/functormaterials - MFEMFunctorMaterial.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 6f668f Lines: 13 16 81.2 %
Date: 2025-09-22 20:01:15 Functions: 3 5 60.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       18450 : MFEMFunctorMaterial::validParams()
      17             : {
      18       18450 :   InputParameters params = MFEMGeneralUserObject::validParams();
      19       18450 :   params += MFEMBlockRestrictable::validParams();
      20             : 
      21       36900 :   params.addClassDescription(
      22             :       "Base class for declaration of material properties to add to MFEM problems.");
      23       18450 :   params.registerBase("FunctorMaterial");
      24       36900 :   params.addPrivateParam<bool>("_neighbor", false);
      25       36900 :   params.addPrivateParam<bool>("_interface", false);
      26       18450 :   return params;
      27           0 : }
      28             : 
      29             : libMesh::Point
      30           0 : MFEMFunctorMaterial::pointFromMFEMVector(const mfem::Vector & vec)
      31             : {
      32           0 :   return libMesh::Point(vec.Elem(0), vec.Elem(1), vec.Elem(2));
      33             : }
      34             : 
      35         116 : MFEMFunctorMaterial::MFEMFunctorMaterial(const InputParameters & parameters)
      36             :   : MFEMGeneralUserObject(parameters),
      37         116 :     MFEMBlockRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh()),
      38         232 :     _properties(getMFEMProblem().getCoefficients())
      39             : {
      40         116 : }
      41             : 
      42         116 : MFEMFunctorMaterial::~MFEMFunctorMaterial() {}
      43             : 
      44             : #endif

Generated by: LCOV version 1.14