LCOV - code coverage report
Current view: top level - src/mfem/bcs - MFEMBoundaryCondition.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #33187 (5aa0b2) with base d7c4bd Lines: 12 13 92.3 %
Date: 2026-06-30 12:18:20 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 "MFEMBoundaryCondition.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       38520 : MFEMBoundaryCondition::validParams()
      20             : {
      21       38520 :   InputParameters params = MFEMObject::validParams();
      22       38520 :   params += MFEMBoundaryRestrictable::validParams();
      23             : 
      24       77040 :   params.addClassDescription("Base class for applying boundary conditions to MFEM problems.");
      25       77040 :   params.registerBase("BoundaryCondition");
      26       77040 :   params.registerSystemAttributeName("BoundaryCondition");
      27      115560 :   params.addParam<VariableName>("variable", "Variable on which to apply the boundary condition");
      28       38520 :   return params;
      29           0 : }
      30             : 
      31        1423 : MFEMBoundaryCondition::MFEMBoundaryCondition(const InputParameters & parameters)
      32             :   : MFEMObject(parameters),
      33             :     MFEMBoundaryRestrictable(
      34        4269 :         parameters, getMFEMProblem().getMFEMVariableMesh(getParam<VariableName>("variable"))),
      35        5692 :     _test_var_name(getParam<VariableName>("variable"))
      36             : {
      37        1423 : }
      38             : 
      39             : #endif

Generated by: LCOV version 1.14