Skip to content
Snippets Groups Projects
Commit ff8cdfa7 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: use local ref to map() to avoid excessive rebuilding during topo changes

parent da5048fd
Branches
Tags
No related merge requests found
......@@ -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),
......
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