diff --git a/src/meshTools/mappedPatches/mappedPatchBase/mappedPatchBase.C b/src/meshTools/mappedPatches/mappedPatchBase/mappedPatchBase.C index d64ee30191..4c38502c3d 100644 --- a/src/meshTools/mappedPatches/mappedPatchBase/mappedPatchBase.C +++ b/src/meshTools/mappedPatches/mappedPatchBase/mappedPatchBase.C @@ -168,6 +168,19 @@ void Foam::mappedPatchBase::calcMapping() const allNearest[alli].data = Foam::sqr(great); } } + else if (nbrPolyPatch().size() == 1) + { + const pointField nbrPoints(nbrPatchFaceCentres()); + + forAll(allPoints, alli) + { + const point& p = allPoints[alli]; + + allNearest[alli].proci = Pstream::myProcNo(); + allNearest[alli].elementi = 0; + allNearest[alli].data = magSqr(nbrPoints[0] - p); + } + } else { const pointField nbrPoints(nbrPatchFaceCentres());