diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C index 81356d5dd4a7ec76977662147948ee33dcb79820..29894d48c5517cfe52095657e14c9008f3e60ac9 100644 --- a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C +++ b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C @@ -29,7 +29,7 @@ template<class Type> void Foam::mappedPatchBase::distribute(List<Type>& lst) const { const label oldComm(Pstream::warnComm); - Pstream::warnComm = map().comm(); + Pstream::warnComm = comm_; switch (mode_) { case NEARESTPATCHFACEAMI: @@ -96,7 +96,7 @@ template<class Type> void Foam::mappedPatchBase::reverseDistribute(List<Type>& lst) const { const label oldComm(Pstream::warnComm); - Pstream::warnComm = map().comm(); + Pstream::warnComm = comm_; switch (mode_) { case NEARESTPATCHFACEAMI: @@ -125,7 +125,7 @@ void Foam::mappedPatchBase::reverseDistribute ) const { const label oldComm(Pstream::warnComm); - Pstream::warnComm = map().comm(); + Pstream::warnComm = comm_; switch (mode_) { case NEARESTPATCHFACEAMI: