mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: globalPoints : disabled 'scheduled' mode for globalPoints construction
This commit is contained in:
@ -1220,7 +1220,17 @@ void Foam::globalPoints::calculateSharedPoints
|
|||||||
|
|
||||||
// Do one exchange iteration to get neighbour points.
|
// Do one exchange iteration to get neighbour points.
|
||||||
{
|
{
|
||||||
PstreamBuffers pBufs(Pstream::defaultCommsType);
|
// Note: to use 'scheduled' would have to intersperse send and receive.
|
||||||
|
// So for now just use nonBlocking. Also globalPoints itself gets
|
||||||
|
// constructed by mesh.globalData().patchSchedule() so creates a loop.
|
||||||
|
PstreamBuffers pBufs
|
||||||
|
(
|
||||||
|
(
|
||||||
|
Pstream::defaultCommsType == Pstream::scheduled
|
||||||
|
? Pstream::nonBlocking
|
||||||
|
: Pstream::defaultCommsType
|
||||||
|
)
|
||||||
|
);
|
||||||
sendPatchPoints
|
sendPatchPoints
|
||||||
(
|
(
|
||||||
mergeSeparated,
|
mergeSeparated,
|
||||||
@ -1251,7 +1261,14 @@ void Foam::globalPoints::calculateSharedPoints
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
PstreamBuffers pBufs(Pstream::defaultCommsType);
|
PstreamBuffers pBufs
|
||||||
|
(
|
||||||
|
(
|
||||||
|
Pstream::defaultCommsType == Pstream::scheduled
|
||||||
|
? Pstream::nonBlocking
|
||||||
|
: Pstream::defaultCommsType
|
||||||
|
)
|
||||||
|
);
|
||||||
sendPatchPoints
|
sendPatchPoints
|
||||||
(
|
(
|
||||||
mergeSeparated,
|
mergeSeparated,
|
||||||
@ -1400,7 +1417,15 @@ void Foam::globalPoints::calculateSharedPoints
|
|||||||
Pout<< "Determined " << changedIndices.size() << " shared points."
|
Pout<< "Determined " << changedIndices.size() << " shared points."
|
||||||
<< " Exchanging them" << endl;
|
<< " Exchanging them" << endl;
|
||||||
}
|
}
|
||||||
PstreamBuffers pBufs(Pstream::defaultCommsType);
|
PstreamBuffers pBufs
|
||||||
|
(
|
||||||
|
(
|
||||||
|
Pstream::defaultCommsType == Pstream::scheduled
|
||||||
|
? Pstream::nonBlocking
|
||||||
|
: Pstream::defaultCommsType
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
sendSharedPoints(mergeSeparated, pBufs, changedIndices);
|
sendSharedPoints(mergeSeparated, pBufs, changedIndices);
|
||||||
pBufs.finishedSends();
|
pBufs.finishedSends();
|
||||||
receiveSharedPoints
|
receiveSharedPoints
|
||||||
|
|||||||
Reference in New Issue
Block a user