LCOV - code coverage report
Current view: top level - src/mfem/bcs - MFEMBoundaryCondition.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 14 15 93.3 %
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 "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       69408 : MFEMBoundaryCondition::validParams()
      20             : {
      21       69408 :   InputParameters params = MFEMGeneralUserObject::validParams();
      22       69408 :   params += MFEMBoundaryRestrictable::validParams();
      23             : 
      24       69408 :   params.addClassDescription("Base class for applying boundary conditions to MFEM problems.");
      25       69408 :   params.registerBase("BoundaryCondition");
      26       69408 :   params.addParam<VariableName>("variable", "Variable on which to apply the boundary condition");
      27       69408 :   return params;
      28           0 : }
      29             : 
      30         184 : MFEMBoundaryCondition::MFEMBoundaryCondition(const InputParameters & parameters)
      31             :   : MFEMGeneralUserObject(parameters),
      32             :     MFEMBoundaryRestrictable(parameters,
      33         184 :                              *getMFEMProblem()
      34         184 :                                   .getProblemData()
      35         368 :                                   .gridfunctions.GetRef(getParam<VariableName>("variable"))
      36             :                                   .ParFESpace()
      37         184 :                                   ->GetParMesh()),
      38         552 :     _test_var_name(getParam<VariableName>("variable"))
      39             : {
      40         184 : }
      41             : 
      42             : #endif

Generated by: LCOV version 1.14