refactor(poly): refactored initializer

This commit is contained in:
2025-04-30 07:28:00 -04:00
parent 424f6eee9b
commit ed4b6404ab
2 changed files with 54 additions and 37 deletions

View File

@@ -28,6 +28,7 @@
#include "4DSTARTypes.h"
#include "operator.h"
#include "config.h"
#include "meshIO.h"
#include "probe.h"
#include "quill/Logger.h"
@@ -60,16 +61,16 @@ public: // Public methods
double getN() const { return m_polytropicIndex; }
double getOrder() const { return m_feOrder; }
mfem::Mesh* getMesh() const { return m_mesh.get(); }
mfem::Mesh& getMesh() const { return m_mesh; }
mfem::GridFunction& getSolution() const { return *m_theta; }
private: // Private Attributes
Config& m_config = Config::getInstance();
Probe::LogManager& m_logManager = Probe::LogManager::getInstance();
quill::Logger* m_logger = m_logManager.getLogger("log");
Config& m_config;
Probe::LogManager& m_logManager;
quill::Logger* m_logger;
double m_polytropicIndex, m_feOrder;
std::unique_ptr<mfem::Mesh> m_mesh;
mfem::Mesh& m_mesh;
std::unique_ptr<mfem::H1_FECollection> m_fecH1;
std::unique_ptr<mfem::RT_FECollection> m_fecRT;
@@ -87,6 +88,11 @@ private: // Private Attributes
private: // Private methods
PolySolver(mfem::Mesh& mesh, double n, double order);
static mfem::Mesh& prepareMesh(double n);
void assembleBlockSystem();
/**