mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 14:40:35 +05:00
Delete tempels Array during SwapImprove (saves memory)
This commit is contained in:
parent
77e536746e
commit
5fffc28de9
@ -1078,6 +1078,7 @@ namespace netgen
|
|||||||
tempmesh.AddVolumeElement (el);
|
tempmesh.AddVolumeElement (el);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tempels.DeleteAll();
|
||||||
|
|
||||||
MeshQuality3d (tempmesh);
|
MeshQuality3d (tempmesh);
|
||||||
|
|
||||||
@ -1132,6 +1133,7 @@ namespace netgen
|
|||||||
|
|
||||||
MeshQuality3d (tempmesh);
|
MeshQuality3d (tempmesh);
|
||||||
|
|
||||||
|
tempels.SetSize(tempmesh.GetNE());
|
||||||
tempels.SetSize(0);
|
tempels.SetSize(0);
|
||||||
for (auto & el : tempmesh.VolumeElements())
|
for (auto & el : tempmesh.VolumeElements())
|
||||||
tempels.Append (el);
|
tempels.Append (el);
|
||||||
|
Loading…
Reference in New Issue
Block a user