Delete tempels Array during SwapImprove (saves memory)

This commit is contained in:
Matthias Hochsteger 2019-10-11 15:35:55 +02:00
parent 77e536746e
commit 5fffc28de9

View File

@ -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);