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 952 by tim, Fri Jan 16 21:55:39 2004 UTC vs.
Revision 1000 by tim, Fri Jan 30 21:47:22 2004 UTC

# Line 95 | Line 95 | void DumpWriter::sortByGlobalIndex(){
95      indexArray.push_back(make_pair(i, atoms[i]->getGlobalIndex()));
96    
97    sort(indexArray.begin(), indexArray.end(), indexSortingCriterion);    
98
99  //for (int i = 0; i < mpiSim->getMyNlocal(); i++) {
100  //  printf("node %d has global %d at local %d\n", worldRank, indexArray[i].second, indexArray[i].first);
101  //}
102    
98   }
99  
100   #endif
# Line 395 | Line 390 | void DumpWriter::writeFrame( vector<ofstream*>& outFil
390          haveError = 0;
391          which_atom = i;
392          
398        //local_index = -1;
399
400        //for (j=0; (j<mpiSim->getMyNlocal()) && (local_index < 0); j++) {
401        //  if (atoms[j]->getGlobalIndex() == which_atom) local_index = j;
402        //}
403        
404        //if (local_index != -1) {
405          
393            local_index = indexArray[currentIndex].first;        
394            
395            if (which_atom == indexArray[currentIndex].second) {
# Line 531 | Line 518 | void DumpWriter::writeFrame( vector<ofstream*>& outFil
518          }
519          which_atom = i;
520  
534        //local_index = -1;
535
536        //for (j=0; (j<mpiSim->getMyNlocal()) && (local_index < 0); j++) {
537        // if (atoms[j]->getGlobalIndex() == which_atom) local_index = j;
538        //}
539        
540        //if (local_index != -1) {
541
521          local_index = indexArray[currentIndex].first;        
522                  
523          if (which_atom == indexArray[currentIndex].second) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines