constructSize bug if construct from synchronised info

This commit is contained in:
mattijs 2009-04-15 12:31:57 +01:00
parent 099114d138
commit 42c075d80a

View File

@ -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;
}
}
}