LCOV - code coverage report
Current view: top level - src/mfem/kernels - MFEMKernel.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 10 11 90.9 %
Date: 2025-07-17 01:28:37 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 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      112534 : MFEMKernel::validParams()
      20             : {
      21      112534 :   InputParameters params = MFEMGeneralUserObject::validParams();
      22      112534 :   params += MFEMBlockRestrictable::validParams();
      23      112534 :   params.registerBase("Kernel");
      24      112534 :   params.addParam<VariableName>("variable",
      25             :                                 "Variable labelling the weak form this kernel is added to");
      26      112534 :   return params;
      27           0 : }
      28             : 
      29         172 : MFEMKernel::MFEMKernel(const InputParameters & parameters)
      30             :   : MFEMGeneralUserObject(parameters),
      31         172 :     MFEMBlockRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh()),
      32         344 :     _test_var_name(getParam<VariableName>("variable"))
      33             : {
      34         172 : }
      35             : 
      36             : #endif

Generated by: LCOV version 1.14