From acb4ca2425d8ad5caf3692654e9141bdb2be0c97 Mon Sep 17 00:00:00 2001
From: sergio <sergio>
Date: Wed, 8 Feb 2012 10:15:05 +0000
Subject: [PATCH] BUG: initiate the Ptr mapToMap is bounda box on mesh
 processors overlaps

---
 src/fieldSources/basicSource/basicSource/basicSource.C | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/fieldSources/basicSource/basicSource/basicSource.C b/src/fieldSources/basicSource/basicSource/basicSource.C
index 355073b33a2..2d218de752a 100644
--- a/src/fieldSources/basicSource/basicSource/basicSource.C
+++ b/src/fieldSources/basicSource/basicSource/basicSource.C
@@ -167,8 +167,10 @@ void Foam::basicSource::setCellSet()
                 Info<< indent << "- selecting inter region mapping" << endl;
                 const fvMesh& secondaryMesh =
                     mesh_.time().lookupObject<fvMesh>(mapRegionName_);
-                const boundBox primaryBB = mesh_.bounds();
-                const boundBox secondaryBB = secondaryMesh.bounds();
+
+                boundBox primaryBB(mesh_.points(), false);
+                boundBox secondaryBB(secondaryMesh.points(), false);
+
                 if (secondaryBB.overlaps(primaryBB))
                 {
                     // Dummy patches
-- 
GitLab