constructSize bug if construct from synchronised info
This commit is contained in:
parent
099114d138
commit
42c075d80a
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user