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