- if ((pid == 0) && (!(cFactory->MPIEnabled(commandName)))) {
- char buf[12];
- strcpy(buf, "command done");
-
- for(int i = 1; i < numProcesses; i++) {
- MPI_Send(buf, 12, MPI_CHAR, i, 2001, MPI_COMM_WORLD); //make everyone wait - just in case
- //MPI_Wait(&request, &status);
- cout << pid << " sent " << buf << endl;
- }
- cout << pid << " is sending " << endl;
- }