From b0bdd05626e03a0a855368d565d9ef55008f3927 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 14 Aug 2013 09:22:36 +0100 Subject: [PATCH] BUG: searchableSurface: double increment; distribute functionality --- .../searchableSurfaceCollection.C | 5 +++-- .../searchableSurfaceWithGaps.H | 20 +++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/meshTools/searchableSurface/searchableSurfaceCollection.C b/src/meshTools/searchableSurface/searchableSurfaceCollection.C index 3aad85f72d..e43d831980 100644 --- a/src/meshTools/searchableSurface/searchableSurfaceCollection.C +++ b/src/meshTools/searchableSurface/searchableSurfaceCollection.C @@ -376,7 +376,7 @@ void Foam::searchableSurfaceCollection::boundingSpheres forAll(subCentres, i) { - centres[coordI++] = transform_[surfI].globalPosition + centres[coordI] = transform_[surfI].globalPosition ( cmptMultiply ( @@ -384,7 +384,8 @@ void Foam::searchableSurfaceCollection::boundingSpheres scale_[surfI] ) ); - radiusSqr[coordI++] = maxScale*subRadiusSqr[i]; + radiusSqr[coordI] = maxScale*subRadiusSqr[i]; + coordI++; } } } diff --git a/src/meshTools/searchableSurface/searchableSurfaceWithGaps.H b/src/meshTools/searchableSurface/searchableSurfaceWithGaps.H index d07d331c8a..1dfe6c8420 100644 --- a/src/meshTools/searchableSurface/searchableSurfaceWithGaps.H +++ b/src/meshTools/searchableSurface/searchableSurfaceWithGaps.H @@ -261,16 +261,16 @@ public: // bounding boxes. The bounds are hints to the surface as for // the range of queries it can expect. faceMap/pointMap can be // set if the surface has done any redistribution. - virtual void distribute - ( - const List& bbs, - const bool keepNonLocal, - autoPtr& faceMap, - autoPtr& pointMap - ) - { - subGeom_[0].distribute(bbs, keepNonLocal, faceMap, pointMap); - } + //virtual void distribute + //( + // const List& bbs, + // const bool keepNonLocal, + // autoPtr& faceMap, + // autoPtr& pointMap + //) + //{ + // subGeom_[0].distribute(bbs, keepNonLocal, faceMap, pointMap); + //} //- WIP. Store element-wise field. virtual void setField(const labelList& values)