LCOV - code coverage report
Current view: top level - src/mfem/kernels - MFEMKernel.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 11 12 91.7 %
Date: 2026-05-29 20:35:17 Functions: 2 2 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             : #ifdef MOOSE_MFEM_ENABLED
      11             : 
      12             : #include "MFEMKernel.h"
      13             : #include "MFEMProblem.h"
      14             : #include "libmesh/ignore_warnings.h"
      15             : #include "mfem/miniapps/common/mesh_extras.hpp"
      16             : #include "libmesh/restore_warnings.h"
      17             : 
      18             : InputParameters
      19       43528 : MFEMKernel::validParams()
      20             : {
      21       43528 :   InputParameters params = MFEMObject::validParams();
      22       43528 :   params += MFEMBlockRestrictable::validParams();
      23       87056 :   params.registerBase("Kernel");
      24       87056 :   params.registerSystemAttributeName("Kernel");
      25      130584 :   params.addParam<VariableName>("variable",
      26             :                                 "Variable labelling the weak form this kernel is added to");
      27       43528 :   return params;
      28           0 : }
      29             : 
      30        1833 : MFEMKernel::MFEMKernel(const InputParameters & parameters)
      31             :   : MFEMObject(parameters),
      32             :     MFEMBlockRestrictable(parameters,
      33        5499 :                           getMFEMProblem().getMFEMVariableMesh(getParam<VariableName>("variable"))),
      34        7332 :     _test_var_name(getParam<VariableName>("variable"))
      35             : {
      36        1833 : }
      37             : 
      38             : #endif

Generated by: LCOV version 1.14