diff --git a/libsrc/meshing/curvedelems.cpp b/libsrc/meshing/curvedelems.cpp index 0ffc9b7a..43d8ae35 100644 --- a/libsrc/meshing/curvedelems.cpp +++ b/libsrc/meshing/curvedelems.cpp @@ -539,7 +539,7 @@ namespace netgen CurvedElements :: CurvedElements (const Mesh & amesh) - : mesh(amesh), geo(*mesh.GetGeometry()) + : mesh(amesh) { order = 1; rational = 0; @@ -555,6 +555,7 @@ namespace netgen void CurvedElements :: BuildCurvedElements(const Refinement * ref, int aorder, bool arational) { + auto & geo = *mesh.GetGeometry(); ishighorder = 0; order = 1; diff --git a/libsrc/meshing/curvedelems.hpp b/libsrc/meshing/curvedelems.hpp index da46ae21..f1a732a0 100644 --- a/libsrc/meshing/curvedelems.hpp +++ b/libsrc/meshing/curvedelems.hpp @@ -17,7 +17,6 @@ class Refinement; class CurvedElements { const Mesh & mesh; - const NetgenGeometry& geo; NgArray edgeorder; NgArray faceorder;