diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C index 29894d48c5517cfe52095657e14c9008f3e60ac9..5e5dd11d9ee5f26794c8a1638ae664453273d236 100644 --- a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C +++ b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseTemplates.C @@ -70,14 +70,15 @@ void Foam::mappedPatchBase::distribute } default: { + const auto& map = this->map(); mapDistributeBase::distribute ( Pstream::defaultCommsType, - map().schedule(), - map().constructSize(), - map().subMap(), + map.schedule(), + map.constructSize(), + map.subMap(), false, - map().constructMap(), + map.constructMap(), false, lst, Type(Zero), @@ -139,14 +140,15 @@ void Foam::mappedPatchBase::reverseDistribute default: { label cSize = sampleSize(); + const auto& map = this->map(); mapDistributeBase::distribute ( Pstream::defaultCommsType, - map().schedule(), + map.schedule(), cSize, - map().constructMap(), + map.constructMap(), false, - map().subMap(), + map.subMap(), false, lst, Type(Zero),