# | Line 398 | Line 398 | namespace OpenMD { | |
---|---|---|
398 | ||
399 | for (int i = 1; i < nProc; ++i) { | |
400 | // tell processor i to start sending us data: | |
401 | + | |
402 | MPI_Bcast(&i, 1, MPI_INT, masterNode, MPI_COMM_WORLD); | |
403 | ||
404 | // receive the length of the string buffer that was | |
# | Line 427 | Line 428 | namespace OpenMD { | |
428 | MPI_Bcast(&myturn, 1, MPI_INT, masterNode, MPI_COMM_WORLD); | |
429 | if (myturn == worldRank){ | |
430 | // send the length of our buffer: | |
431 | + | |
432 | MPI_Send(&sendBufferLength, 1, MPI_INT, masterNode, 0, MPI_COMM_WORLD); | |
433 | ||
434 | // send our buffer: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |