LCOV - code coverage report
Current view: top level - src/mfem/bcs - MFEMVectorFEBoundaryTangentIntegratedBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 5 12 41.7 %
Date: 2026-05-29 20:35:17 Functions: 1 3 33.3 %
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 "MFEMVectorFEBoundaryTangentIntegratedBC.h"
      13             : 
      14             : registerMooseObject("MooseApp", MFEMVectorFEBoundaryTangentIntegratedBC);
      15             : 
      16             : InputParameters
      17        2098 : MFEMVectorFEBoundaryTangentIntegratedBC::validParams()
      18             : {
      19        2098 :   InputParameters params = MFEMIntegratedBC::validParams();
      20        4196 :   params.addClassDescription("Adds the boundary integrator to an MFEM problem for the linear form "
      21             :                              "$(\\vec n \\times \\vec f, \\vec v)_{\\partial\\Omega}$");
      22        6294 :   params.addParam<MFEMVectorCoefficientName>(
      23             :       "vector_coefficient", "1. 1. 1.", "Vector coefficient used in the boundary integrator");
      24        2098 :   return params;
      25           0 : }
      26             : 
      27           0 : MFEMVectorFEBoundaryTangentIntegratedBC::MFEMVectorFEBoundaryTangentIntegratedBC(
      28           0 :     const InputParameters & parameters)
      29           0 :   : MFEMIntegratedBC(parameters), _vec_coef(getVectorCoefficient("vector_coefficient"))
      30             : {
      31           0 : }
      32             : 
      33             : // Create MFEM integrator to apply to the RHS of the weak form. Ownership managed by the caller.
      34             : mfem::LinearFormIntegrator *
      35           0 : MFEMVectorFEBoundaryTangentIntegratedBC::createLFIntegrator()
      36             : {
      37           0 :   return new mfem::VectorFEBoundaryTangentLFIntegrator(_vec_coef);
      38             : }
      39             : 
      40             : #endif

Generated by: LCOV version 1.14