File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/doc/en/thematic_tutorials/numerical_sage Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,10 @@ fact, the above code will hang if ``[rank]*5`` is replaced by
105
105
print (" I received this:" )
106
106
print (data)
107
107
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 .
112
112
113
113
A common idiom is to have one process, usually the one with rank 0,
114
114
act as a leader. That process sends data out to the other
You can’t perform that action at this time.
0 commit comments