fix(poly): working on solving polytrope

This commit is contained in:
2025-03-14 09:12:40 -04:00
parent 5300fa88a9
commit b4615fc0aa
4 changed files with 42 additions and 34 deletions

View File

@@ -228,8 +228,11 @@ namespace polyMFEMUtils {
std::vector<double> zeroSlopeCoordinate; // The coordinate of the zero slope point
int zeroSlopeElemID = -1;
mfem::Array<int> zeroSlopeDofs;
mfem::IntegrationPoint zeroSlopeIP;
double zeroIPReferenceCoord[4] = {0.0, 0.0, 0.0, 1.0};
mfem::IntegrationPoint zeroIP;
mfem::Array<int> zeroSlopeConnectedElements;
std::vector<mfem::IntegrationPoint> zeroSlopeIPs;
std::vector<mfem::Array<int>> zeroSlopeDofs;
std::unique_ptr<mfem::GridFunction> u_gf;
mutable mfem::SparseMatrix *grad = nullptr;