--- trunk/OOPSE/libmdtools/DumpWriter.cpp 2004/01/16 21:51:51 951 +++ trunk/OOPSE/libmdtools/DumpWriter.cpp 2004/01/30 21:47:22 1000 @@ -95,11 +95,6 @@ void DumpWriter::sortByGlobalIndex(){ indexArray.push_back(make_pair(i, atoms[i]->getGlobalIndex())); sort(indexArray.begin(), indexArray.end(), indexSortingCriterion); - - //for (int i = 0; i < mpiSim->getMyNlocal(); i++) { - // printf("node %d has global %d at local %d\n", worldRank, indexArray[i].second, indexArray[i].first); - //} - } #endif @@ -110,10 +105,8 @@ void DumpWriter::writeDump(double currentTime){ vector fileStreams; #ifdef IS_MPI - printf("Hello from node %d\n", worldRank); - sortByGlobalIndex(); if(worldRank == 0 ){ - +#endif finalOut.open( entry_plug->finalName, ios::out | ios::trunc ); if( !finalOut ){ sprintf( painCave.errMsg, @@ -122,6 +115,7 @@ void DumpWriter::writeDump(double currentTime){ painCave.isFatal = 1; simError(); } +#ifdef IS_MPI } #endif // is_mpi @@ -395,15 +389,7 @@ void DumpWriter::writeFrame( vector& outFil haveError = 0; which_atom = i; - - //local_index = -1; - - //for (j=0; (jgetMyNlocal()) && (local_index < 0); j++) { - // if (atoms[j]->getGlobalIndex() == which_atom) local_index = j; - //} - //if (local_index != -1) { - local_index = indexArray[currentIndex].first; if (which_atom == indexArray[currentIndex].second) { @@ -532,14 +518,6 @@ void DumpWriter::writeFrame( vector& outFil } which_atom = i; - //local_index = -1; - - //for (j=0; (jgetMyNlocal()) && (local_index < 0); j++) { - // if (atoms[j]->getGlobalIndex() == which_atom) local_index = j; - //} - - //if (local_index != -1) { - local_index = indexArray[currentIndex].first; if (which_atom == indexArray[currentIndex].second) {