LCOV - code coverage report
Current view: top level - include/mfem/problem - MFEMProblemData.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #33416 (b10b36) with base 9fbd27 Lines: 2 2 100.0 %
Date: 2026-07-23 16:15:30 Functions: 2 3 66.7 %
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 "EquationSystem.h"
      15             : #include "ComplexEquationSystem.h"
      16             : #include "MFEMContainers.h"
      17             : #include "CoefficientManager.h"
      18             : #include "MFEMLinearSolverBase.h"
      19             : #include "MFEMNonlinearSolverBase.h"
      20             : #include "MFEMRefinementMarker.h"
      21             : 
      22             : /// Base problem data struct.
      23             : struct MFEMProblemData
      24             : {
      25             : public:
      26        5913 :   MFEMProblemData() = default;
      27        1959 :   virtual ~MFEMProblemData() { ode_solver.reset(); };
      28             : 
      29             :   std::shared_ptr<mfem::ParMesh> pmesh{nullptr};
      30             :   Moose::MFEM::SubMeshes submeshes;
      31             :   Moose::MFEM::CoefficientManager coefficients;
      32             : 
      33             :   std::unique_ptr<mfem::ODESolver> ode_solver{nullptr};
      34             :   /// Persistent true-DoF solution vector backing trial grid functions after problem operator init.
      35             :   mfem::BlockVector true_solution;
      36             : 
      37             :   std::shared_ptr<Moose::MFEM::EquationSystem> eqn_system{nullptr};
      38             :   std::shared_ptr<Moose::MFEM::NonlinearSolverBase> nonlinear_solver{nullptr};
      39             : 
      40             :   std::shared_ptr<Moose::MFEM::LinearSolverBase> jacobian_solver{nullptr};
      41             : 
      42             :   Moose::MFEM::FECollections fecs;
      43             :   Moose::MFEM::FESpaces fespaces;
      44             :   Moose::MFEM::FESpaceHierarchies fespace_hierarchies;
      45             :   Moose::MFEM::GridFunctions gridfunctions;
      46             :   Moose::MFEM::TimeDerivativeMap time_derivative_map;
      47             :   Moose::MFEM::ComplexGridFunctions cmplx_gridfunctions;
      48             : 
      49             :   std::string mode_separator{"_"};
      50             : 
      51             :   std::shared_ptr<MFEMRefinementMarker> refiner;
      52             : 
      53             :   MPI_Comm comm;
      54             :   int myid;
      55             :   int num_procs;
      56             : };
      57             : 
      58             : #endif

Generated by: LCOV version 1.14