From 352ef55b6d6b706fd8fd10c11d544984b6054476 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Wed, 9 Dec 2009 12:50:21 +0000 Subject: [PATCH] Added setCapacity function to presize storage --- .../polyTopoChange/polyTopoChange/polyTopoChange.H | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.H b/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.H index 398ced6b0de..a5ffe331d5a 100644 --- a/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.H +++ b/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.H @@ -472,6 +472,15 @@ public: const labelList& cellZoneMap ); + //- Explicitly pre-size the dynamic storage for expected mesh + // size for if construct-without-mesh + void setCapacity + ( + const label nPoints, + const label nFaces, + const label nCells + ); + //- Move all points. Incompatible with other topology changes. void movePoints(const pointField& newPoints); -- GitLab