LCOV - code coverage report
Current view: top level - src/mfem/kernels - MFEMMixedVectorMassKernel.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31405 (292dce) with base fef103 Lines: 10 11 90.9 %
Date: 2025-09-04 07:52:05 Functions: 3 3 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 "MFEMMixedVectorMassKernel.h"
      13             : 
      14             : registerMooseObject("MooseApp", MFEMMixedVectorMassKernel);
      15             : 
      16             : InputParameters
      17        8646 : MFEMMixedVectorMassKernel::validParams()
      18             : {
      19        8646 :   InputParameters params = MFEMMixedBilinearFormKernel::validParams();
      20       17292 :   params.addClassDescription(
      21             :       "Adds the domain integrator to an MFEM problem for the mixed bilinear form "
      22             :       "$(k\\vec u, \\vec v)_\\Omega$.");
      23       25938 :   params.addParam<MFEMScalarCoefficientName>("coefficient", "1.", "Name of property k to use.");
      24        8646 :   return params;
      25           0 : }
      26             : 
      27           8 : MFEMMixedVectorMassKernel::MFEMMixedVectorMassKernel(const InputParameters & parameters)
      28          16 :   : MFEMMixedBilinearFormKernel(parameters), _coef(getScalarCoefficient("coefficient"))
      29             : // FIXME: The MFEM bilinear form can also handle vector and matrix
      30             : // coefficients, so ideally we'd handle all three too.
      31             : {
      32           8 : }
      33             : 
      34             : mfem::BilinearFormIntegrator *
      35           8 : MFEMMixedVectorMassKernel::createMBFIntegrator()
      36             : {
      37           8 :   return new mfem::MixedVectorMassIntegrator(_coef);
      38             : }
      39             : 
      40             : #endif

Generated by: LCOV version 1.14