mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
constructSize bug if construct from synchronised info
This commit is contained in:
@ -205,7 +205,7 @@ Foam::mapDistribute::mapDistribute
|
|||||||
const labelList& recvProcs
|
const labelList& recvProcs
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
constructSize_(sendProcs.size()),
|
constructSize_(0),
|
||||||
schedulePtr_()
|
schedulePtr_()
|
||||||
{
|
{
|
||||||
if (sendProcs.size() != recvProcs.size())
|
if (sendProcs.size() != recvProcs.size())
|
||||||
@ -266,6 +266,8 @@ Foam::mapDistribute::mapDistribute
|
|||||||
{
|
{
|
||||||
// I am the receiver.
|
// I am the receiver.
|
||||||
constructMap_[sendProc][nRecv[sendProc]++] = sampleI;
|
constructMap_[sendProc][nRecv[sendProc]++] = sampleI;
|
||||||
|
// Largest entry inside constructMap
|
||||||
|
constructSize_ = sampleI+1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user