ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/rnemd/RNEMD.cpp
(Generate patch)

Comparing trunk/src/rnemd/RNEMD.cpp (file contents):
Revision 1792 by gezelter, Fri Aug 31 16:48:50 2012 UTC vs.
Revision 1793 by gezelter, Fri Aug 31 21:16:10 2012 UTC

# Line 451 | Line 451 | namespace OpenMD {
451  
452      int selei;
453      StuntDouble* sd;
454    int idx;
454  
455      RealType min_val;
456      bool min_found = false;  
# Line 464 | Line 463 | namespace OpenMD {
463      for (sd = seleMan_.beginSelected(selei); sd != NULL;
464           sd = seleMan_.nextSelected(selei)) {
465  
467      idx = sd->getLocalIndex();
468
466        Vector3d pos = sd->getPos();
467  
468        // wrap the stuntdouble's position back into the box:
# Line 543 | Line 540 | namespace OpenMD {
540        }
541      }
542      
543 < #ifdef IS_MPI
544 <    int nProc, worldRank;
543 > #ifdef IS_MPI    
544 >    int worldRank = MPI::COMM_WORLD.Get_rank();
545      
549    nProc = MPI::COMM_WORLD.Get_size();
550    worldRank = MPI::COMM_WORLD.Get_rank();
551
546      bool my_min_found = min_found;
547      bool my_max_found = max_found;
548  
# Line 781 | Line 775 | namespace OpenMD {
775  
776      int selei;
777      StuntDouble* sd;
784    int idx;
778  
779      vector<StuntDouble*> hotBin, coldBin;
780  
# Line 803 | Line 796 | namespace OpenMD {
796      for (sd = seleMan_.beginSelected(selei); sd != NULL;
797           sd = seleMan_.nextSelected(selei)) {
798  
806      idx = sd->getLocalIndex();
807
799        Vector3d pos = sd->getPos();
800  
801        // wrap the stuntdouble's position back into the box:
# Line 1231 | Line 1222 | namespace OpenMD {
1222  
1223      int selei;
1224      StuntDouble* sd;
1234    int idx;
1225  
1226      vector<StuntDouble*> hotBin, coldBin;
1227  
# Line 1245 | Line 1235 | namespace OpenMD {
1235  
1236      for (sd = seleMan_.beginSelected(selei); sd != NULL;
1237           sd = seleMan_.nextSelected(selei)) {
1248
1249      idx = sd->getLocalIndex();
1238  
1239        Vector3d pos = sd->getPos();
1240  
# Line 1429 | Line 1417 | namespace OpenMD {
1417  
1418      int selei;
1419      StuntDouble* sd;
1432    int idx;
1420  
1421      vector<RealType> binMass(nBins_, 0.0);
1422      vector<RealType> binPx(nBins_, 0.0);
# Line 1454 | Line 1441 | namespace OpenMD {
1441               sd = mol->nextIntegrableObject(iiter))
1442      */
1443      for (sd = seleMan_.beginSelected(selei); sd != NULL;
1444 <         sd = seleMan_.nextSelected(selei)) {
1458 <      
1459 <      idx = sd->getLocalIndex();
1444 >         sd = seleMan_.nextSelected(selei)) {    
1445        
1446        Vector3d pos = sd->getPos();
1447  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines