Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
d730150e
Commit
d730150e
authored
Dec 06, 2010
by
mattijs
Browse files
ENH: globalPoints : disabled 'scheduled' mode for globalPoints construction
parent
ecf99819
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/globalMeshData/globalPoints.C
View file @
d730150e
...
...
@@ -1220,7 +1220,17 @@ void Foam::globalPoints::calculateSharedPoints
// 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
(
mergeSeparated
,
...
...
@@ -1251,7 +1261,14 @@ void Foam::globalPoints::calculateSharedPoints
do
{
PstreamBuffers
pBufs
(
Pstream
::
defaultCommsType
);
PstreamBuffers
pBufs
(
(
Pstream
::
defaultCommsType
==
Pstream
::
scheduled
?
Pstream
::
nonBlocking
:
Pstream
::
defaultCommsType
)
);
sendPatchPoints
(
mergeSeparated
,
...
...
@@ -1400,7 +1417,15 @@ void Foam::globalPoints::calculateSharedPoints
Pout
<<
"Determined "
<<
changedIndices
.
size
()
<<
" shared points."
<<
" Exchanging them"
<<
endl
;
}
PstreamBuffers
pBufs
(
Pstream
::
defaultCommsType
);
PstreamBuffers
pBufs
(
(
Pstream
::
defaultCommsType
==
Pstream
::
scheduled
?
Pstream
::
nonBlocking
:
Pstream
::
defaultCommsType
)
);
sendSharedPoints
(
mergeSeparated
,
pBufs
,
changedIndices
);
pBufs
.
finishedSends
();
receiveSharedPoints
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment