Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
5e011527
Commit
5e011527
authored
Apr 29, 2019
by
mattijs
Committed by
Andrew Heather
Apr 29, 2019
Browse files
ENH: Pstream: use commsType to decide whether reduce or all-to-all
parent
828f8e85
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Pstream/mpi/UIPread.C
View file @
5e011527
...
...
@@ -97,7 +97,8 @@ Foam::UIPstream::UIPstream
);
MPI_Get_count
(
&
status
,
MPI_BYTE
,
&
messageSize_
);
profilingPstream
::
addWaitTime
();
// Assume these are from gathers ...
profilingPstream
::
addGatherTime
();
externalBuf_
.
setCapacity
(
messageSize_
);
wantedSize
=
messageSize_
;
...
...
@@ -202,7 +203,8 @@ Foam::UIPstream::UIPstream(const int fromProcNo, PstreamBuffers& buffers)
);
MPI_Get_count
(
&
status
,
MPI_BYTE
,
&
messageSize_
);
profilingPstream
::
addWaitTime
();
// Assume these are from gathers ...
profilingPstream
::
addGatherTime
();
externalBuf_
.
setCapacity
(
messageSize_
);
wantedSize
=
messageSize_
;
...
...
@@ -293,7 +295,7 @@ Foam::label Foam::UIPstream::read
return
0
;
}
profilingPstream
::
add
Sc
at
t
erTime
();
profilingPstream
::
add
G
at
h
erTime
();
// Check size of message read
...
...
@@ -344,7 +346,7 @@ Foam::label Foam::UIPstream::read
return
0
;
}
profilingPstream
::
add
Scatter
Time
();
profilingPstream
::
add
Wait
Time
();
if
(
debug
)
{
...
...
src/Pstream/mpi/UOPwrite.C
View file @
5e011527
...
...
@@ -85,7 +85,8 @@ bool Foam::UOPstream::write
PstreamGlobals
::
MPICommunicators_
[
communicator
]
//MPI_COMM_WORLD
);
profilingPstream
::
addGatherTime
();
// Assume these are from scatters ...
profilingPstream
::
addScatterTime
();
if
(
debug
)
{
...
...
@@ -107,7 +108,8 @@ bool Foam::UOPstream::write
PstreamGlobals
::
MPICommunicators_
[
communicator
]
//MPI_COMM_WORLD
);
profilingPstream
::
addWaitTime
();
// Assume these are from scatters ...
profilingPstream
::
addScatterTime
();
if
(
debug
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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