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 |
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: |
792 |
|
|
793 |
|
void DumpWriter::writeDumpAndEor() { |
794 |
|
std::vector<std::streambuf*> buffers; |
795 |
< |
std::ostream* eorStream; |
795 |
> |
std::ostream* eorStream = NULL; |
796 |
|
#ifdef IS_MPI |
797 |
|
if (worldRank == 0) { |
798 |
|
#endif // is_mpi |