LCOV - code coverage report
Current view: top level - include/mfem/problem_operators - EquationSystemProblemOperator.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 5 5 100.0 %
Date: 2026-05-29 20:35:17 Functions: 2 2 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             : #pragma once
      13             : 
      14             : #include "ProblemOperator.h"
      15             : #include "EquationSystemInterface.h"
      16             : 
      17             : namespace Moose::MFEM
      18             : {
      19             : /// Steady-state problem operator with an equation system.
      20             : class EquationSystemProblemOperator : public ProblemOperator, public EquationSystemInterface
      21             : {
      22             : public:
      23        1087 :   EquationSystemProblemOperator(MFEMProblem & problem)
      24        1087 :     : ProblemOperator(problem), _equation_system(_problem_data.eqn_system)
      25             :   {
      26        1087 :   }
      27             : 
      28             :   virtual void SetGridFunctions() override;
      29             :   virtual void Solve() override;
      30             : 
      31        7390 :   [[nodiscard]] virtual Moose::MFEM::EquationSystem * GetEquationSystem() const override
      32             :   {
      33             :     mooseAssert(_equation_system, "No EquationSystem in EquationSystemProblemOperator.");
      34        7390 :     return _equation_system.get();
      35             :   }
      36             : 
      37             : protected:
      38             :   /// Add kernels/bcs and assemble the linear part of the equation system
      39             :   void BuildEquationSystemOperator();
      40             : 
      41             : private:
      42             :   std::shared_ptr<Moose::MFEM::EquationSystem> _equation_system{nullptr};
      43             : };
      44             : 
      45             : } // namespace Moose::MFEM
      46             : 
      47             : #endif

Generated by: LCOV version 1.14