ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/DumpWriter.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/DumpWriter.cpp (file contents):
Revision 837 by tim, Wed Oct 29 00:19:10 2003 UTC vs.
Revision 905 by tim, Wed Jan 7 19:26:12 2004 UTC

# Line 7 | Line 7
7   #ifdef IS_MPI
8   #include <mpi.h>
9   #include "mpiSimulation.hpp"
10 < #define TAKE_THIS_TAG_CHAR 1
11 < #define TAKE_THIS_TAG_INT 2
10 > #define TAKE_THIS_TAG_CHAR 15
11 > #define TAKE_THIS_TAG_INT 20
12  
13   namespace dWrite{
14    void nodeZeroError( void );
# Line 262 | Line 262 | void DumpWriter::writeDump( double currentTime ){
262  
263      // kill everyone off:
264      myStatus = -1;
265 <    for (j = 0; j < mpiSim->getNumberProcessors(); j++) {
265 >    for (j = 1; j < mpiSim->getNumberProcessors(); j++) {
266        MPI_Send(&myStatus, 1, MPI_INT, j,
267                 TAKE_THIS_TAG_INT, MPI_COMM_WORLD);
268      }
# Line 571 | Line 571 | void DumpWriter::writeFinal(double finalTime){
571  
572      // kill everyone off:
573      myStatus = -1;
574 <    for (j = 0; j < mpiSim->getNumberProcessors(); j++) {
574 >    for (j = 1; j < mpiSim->getNumberProcessors(); j++) {
575        MPI_Send(&myStatus, 1, MPI_INT, j,
576                 TAKE_THIS_TAG_INT, MPI_COMM_WORLD);
577      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines