Skip to content
Snippets Groups Projects
Commit acb4ca24 authored by sergio's avatar sergio
Browse files

BUG: initiate the Ptr mapToMap is bounda box on mesh processors overlaps

parent 04e92966
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment