From 81629a44d005b4dbaa3ba3fdd8899053cf2620ae Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Mon, 18 Jan 2021 18:17:31 +0000 Subject: [PATCH] BUG: mapped: access map() for AMI cases. Fixes #1982 Should not call map() since it triggers building the (one-to-one) mapping which conflicts with the self-contained mapping of cyclicAMI --- .../mappedPolyPatch/mappedPatchBaseTemplates.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C index 81356d5dd4a..29894d48c55 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: -- GitLab