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

Generated by: LCOV version 1.14