LCOV - code coverage report
Current view: top level - src/mfem/bcs - MFEMBoundaryIntegratedBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 12 13 92.3 %
Date: 2025-07-17 01:28:37 Functions: 4 4 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 "MFEMBoundaryIntegratedBC.h"
      13             : 
      14             : registerMooseObject("MooseApp", MFEMBoundaryIntegratedBC);
      15             : 
      16             : InputParameters
      17        8632 : MFEMBoundaryIntegratedBC::validParams()
      18             : {
      19        8632 :   InputParameters params = MFEMIntegratedBC::validParams();
      20        8632 :   params.addClassDescription("Adds the boundary integrator to an MFEM problem for the linear form "
      21             :                              "$(f, v)_\\Omega$ "
      22             :                              "arising from the weak form of the forcing term $f$.");
      23        8632 :   params.addParam<MFEMScalarCoefficientName>(
      24             :       "coefficient", "1.", "The coefficient which will be used in the integrated BC");
      25        8632 :   return params;
      26           0 : }
      27             : 
      28           1 : MFEMBoundaryIntegratedBC::MFEMBoundaryIntegratedBC(const InputParameters & parameters)
      29             :   : MFEMIntegratedBC(parameters),
      30           1 :     _coef(getScalarCoefficient(getParam<MFEMScalarCoefficientName>("coefficient")))
      31             : {
      32           1 : }
      33             : 
      34             : // Create a new MFEM integrator to apply to the RHS of the weak form. Ownership managed by the
      35             : // caller.
      36             : mfem::LinearFormIntegrator *
      37           1 : MFEMBoundaryIntegratedBC::createLFIntegrator()
      38             : {
      39           1 :   return new mfem::BoundaryLFIntegrator(_coef);
      40             : }
      41             : 
      42             : // Create a new MFEM integrator to apply to LHS of the weak form. Ownership managed by the caller.
      43             : mfem::BilinearFormIntegrator *
      44           1 : MFEMBoundaryIntegratedBC::createBFIntegrator()
      45             : {
      46           1 :   return nullptr;
      47             : }
      48             : 
      49             : #endif

Generated by: LCOV version 1.14