diff --git a/src/fieldSources/basicSource/basicSource/basicSource.C b/src/fieldSources/basicSource/basicSource/basicSource.C index 355073b33a2a190399d585d66684596d6096cbec..2d218de752afdf67cd63e169d01a2e714924edd3 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