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

Generated by: LCOV version 1.14