From 5fffc28de9375265794f359944dfe68697486843 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 11 Oct 2019 15:35:55 +0200 Subject: [PATCH] Delete tempels Array during SwapImprove (saves memory) --- libsrc/meshing/delaunay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/meshing/delaunay.cpp b/libsrc/meshing/delaunay.cpp index cc850219..2bf1f674 100644 --- a/libsrc/meshing/delaunay.cpp +++ b/libsrc/meshing/delaunay.cpp @@ -1078,6 +1078,7 @@ namespace netgen tempmesh.AddVolumeElement (el); } + tempels.DeleteAll(); MeshQuality3d (tempmesh); @@ -1132,6 +1133,7 @@ namespace netgen MeshQuality3d (tempmesh); + tempels.SetSize(tempmesh.GetNE()); tempels.SetSize(0); for (auto & el : tempmesh.VolumeElements()) tempels.Append (el);