LCOV - code coverage report
Current view: top level - include/mfem/auxkernels - MFEMInnerProductAux.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 1 1 100.0 %
Date: 2026-05-29 20:35:17 Functions: 1 2 50.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             : #pragma once
      13             : 
      14             : #include "MFEMAuxKernel.h"
      15             : 
      16             : /**
      17             :  * Project \f$ s \vec u \cdot \vec v \f$ onto a scalar MFEM auxvariable.
      18             :  *
      19             :  * Notes:
      20             :  *  - The target variable's FE Space must be L2.
      21             :  *  - Currently supports only interior DOFs (no shared/constrained DOFs).
      22             :  */
      23             : class MFEMInnerProductAux : public MFEMAuxKernel
      24             : {
      25             : public:
      26             :   static InputParameters validParams();
      27             : 
      28             :   MFEMInnerProductAux(const InputParameters & parameters);
      29           6 :   ~MFEMInnerProductAux() override = default;
      30             : 
      31             :   void execute() override;
      32             : 
      33             : protected:
      34             :   /// Inner product coefficient
      35             :   mfem::InnerProductCoefficient _inner;
      36             : 
      37             :   /// Final coefficient that applies a scaling factor to the inner product
      38             :   mfem::ProductCoefficient _scaled_inner;
      39             : };
      40             : 
      41             : #endif // MOOSE_MFEM_ENABLED

Generated by: LCOV version 1.14