Commit 42c075d8 authored by mattijs's avatar mattijs
Browse files

constructSize bug if construct from synchronised info

parent 099114d1
......@@ -205,7 +205,7 @@ Foam::mapDistribute::mapDistribute
const labelList& recvProcs
)
:
constructSize_(sendProcs.size()),
constructSize_(0),
schedulePtr_()
{
if (sendProcs.size() != recvProcs.size())
......@@ -266,6 +266,8 @@ Foam::mapDistribute::mapDistribute
{
// I am the receiver.
constructMap_[sendProc][nRecv[sendProc]++] = sampleI;
// Largest entry inside constructMap
constructSize_ = sampleI+1;
}
}
}
......
Supports Markdown
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