Skip to content

Commit 26719fb

Browse files
author
Matthias Koeppe
committed
src/doc/en/thematic_tutorials/numerical_sage/mpi4py.rst: Another suggested rewording
1 parent 8af4937 commit 26719fb

File tree

1 file changed

+4
-4
lines changed
  • src/doc/en/thematic_tutorials/numerical_sage

1 file changed

+4
-4
lines changed

src/doc/en/thematic_tutorials/numerical_sage/mpi4py.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ fact, the above code will hang if ``[rank]*5`` is replaced by
105105
print("I received this:")
106106
print(data)
107107
108-
Now the first process initiates a send, and then process 1 will be
109-
ready to receive and then he will send and process 2 will be
110-
waiting to receive, etc. This will not lock regardless of how large
111-
of an array we pass.
108+
Now, process 0 sends the data to process 1, then waits to receive from
109+
process ``MPI.size - 1``. Simultaneously, process 1 will send the
110+
data to process 2, then receives the data from process 0. This will
111+
not lock even if the array transmitted is huge.
112112

113113
A common idiom is to have one process, usually the one with rank 0,
114114
act as a leader. That process sends data out to the other

0 commit comments

Comments
 (0)