feat(poly): added memory safty flags

This commit is contained in:
2025-04-21 10:18:44 -04:00
parent b203fe625c
commit e4b56d7ce2
3 changed files with 27 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ public:
bool isFinalized() const { return m_isFinalized; }
void finalize();
void finalize(const mfem::Vector &initTheta);
const mfem::Array<int>& GetBlockOffsets() const { return m_blockOffsets; }
@@ -78,7 +78,6 @@ private:
std::unique_ptr<mfem::ScaledOperator> m_negQ_op;
mutable std::unique_ptr<mfem::BlockOperator> m_jacobian;
// TODO I think these need to be calculated in the GetGradient every time since they will always change
mutable std::unique_ptr<mfem::SparseMatrix> m_invSchurCompliment;
mutable std::unique_ptr<mfem::SparseMatrix> m_invNonlinearJacobian;