From 4528eb8a69582bf9007db7296d1a337ffa39aa73 Mon Sep 17 00:00:00 2001 From: graham Date: Wed, 8 Jun 2011 17:26:32 +0100 Subject: [PATCH] ENH: backgroundMeshDecompostion distributed queries. --- .../backgroundMeshDecomposition.C | 418 +++++++++++++++++- .../backgroundMeshDecomposition.H | 38 +- .../conformalVoronoiMesh.C | 50 ++- .../conformalVoronoiMesh.H | 16 +- .../conformalVoronoiMeshConformToSurface.C | 5 +- 5 files changed, 512 insertions(+), 15 deletions(-) diff --git a/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C b/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C index 41a37cbb17..2e512fbe8c 100644 --- a/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C +++ b/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C @@ -353,6 +353,8 @@ void Foam::backgroundMeshDecomposition::initialRefinement() cellWeights.write(); mesh_.write(); } + + buildPatchAndTree(); } @@ -616,6 +618,12 @@ void Foam::backgroundMeshDecomposition::buildPatchAndTree() ) ); + // Give the bounds of every processor to every other processor + allBackgroundMeshBounds_[Pstream::myProcNo()] = overallBb; + + Pstream::gatherList(allBackgroundMeshBounds_); + Pstream::scatterList(allBackgroundMeshBounds_); + if (debug) { OFstream fStr @@ -659,6 +667,92 @@ void Foam::backgroundMeshDecomposition::buildPatchAndTree() } +Foam::autoPtr Foam::backgroundMeshDecomposition::buildMap +( + const List