From d44419f5849ff5724f009e89033cabef7d8644e7 Mon Sep 17 00:00:00 2001 From: Dominik Christ Date: Fri, 7 Aug 2015 18:15:00 +0100 Subject: [PATCH] Set default size for Dynamic List to avoid re-allocation of memory, 2. --- .../GGIInterpolation/GGIInterpolationQuickRejectTests.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/foam/interpolations/GGIInterpolation/GGIInterpolationQuickRejectTests.C b/src/foam/interpolations/GGIInterpolation/GGIInterpolationQuickRejectTests.C index bb690918e..8626171cb 100644 --- a/src/foam/interpolations/GGIInterpolation/GGIInterpolationQuickRejectTests.C +++ b/src/foam/interpolations/GGIInterpolation/GGIInterpolationQuickRejectTests.C @@ -123,7 +123,7 @@ void GGIInterpolation::findNeighbours3D labelListList& result ) const { - List > candidateMasterNeighbors(masterPatch_.size()); + List > candidateMasterNeighbors(masterPatch_.size()); // First, compute the face center and the sphere radius (squared) // of the slave patch faces so we will not have to recompute this @@ -276,7 +276,7 @@ void GGIInterpolation::findNeighboursAABB labelListList& result ) const { - List > candidateMasterNeighbors(masterPatch_.size()); + List > candidateMasterNeighbors(masterPatch_.size()); // Grab the master patch faces bounding boxes List masterPatchBB(masterPatch_.size()); @@ -431,7 +431,7 @@ void GGIInterpolation::findNeighboursBBOctree labelListList& result ) const { - List > candidateMasterNeighbors(masterPatch_.size()); + List > candidateMasterNeighbors(masterPatch_.size()); // Initialize the list of master patch faces bounding box treeBoundBoxList lmasterFaceBB(masterPatch_.size());