LCOV - code coverage report
Current view: top level - include/mfem/kernels - MFEMMixedBilinearFormKernel.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 1 2 50.0 %
Date: 2025-08-08 20:01:16 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             : #pragma once
      13             : #include "MFEMKernel.h"
      14             : 
      15             : /**
      16             :  * Class to construct an MFEM mixed bilinear form integrator to apply to the equation system.
      17             :  */
      18             : class MFEMMixedBilinearFormKernel : public MFEMKernel
      19             : {
      20             : public:
      21             :   static InputParameters validParams();
      22             : 
      23             :   MFEMMixedBilinearFormKernel(const InputParameters & parameters);
      24          18 :   ~MFEMMixedBilinearFormKernel() = default;
      25             : 
      26             :   /// Get name of the trial variable (gridfunction) the kernel acts on.
      27             :   /// Defaults to the name of the test variable labelling the weak form.
      28             :   virtual const VariableName & getTrialVariableName() const override;
      29             : 
      30             :   /// Create MFEM mixed bilinear form integrator. Ownership managed by the caller.
      31           0 :   virtual mfem::BilinearFormIntegrator * createMBFIntegrator() { return nullptr; }
      32             : 
      33             :   /// We override this to optionally transpose the mixed bilinear form integrator.
      34             :   virtual mfem::BilinearFormIntegrator * createBFIntegrator() override;
      35             : 
      36             : protected:
      37             :   /// Name of the trial variable that the kernel is applied to.
      38             :   const VariableName _trial_var_name;
      39             :   /// Bool controlling whether to add the transpose of the integrator to the system
      40             :   bool _transpose;
      41             : };
      42             : 
      43             : #endif

Generated by: LCOV version 1.14