ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/selection/DistanceFinder.cpp
(Generate patch)

Comparing trunk/src/selection/DistanceFinder.cpp (file contents):
Revision 1433 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
Revision 1434 by chuckv, Wed Apr 14 14:41:33 2010 UTC

# Line 1 | Line 1
1   /*
2 < * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
2 > * Copyright (c) 2005, 2010 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
5   * non-exclusive, royalty free, license to use, modify and
# Line 76 | Line 76 | namespace OpenMD {
76      Snapshot* currSnapshot = info_->getSnapshotManager()->getCurrentSnapshot();
77      OpenMDBitSet bsResult(nStuntDoubles_);
78      assert(bsResult.size() == bs.size());
79 <    
79 >  
80 >    for (int j = 0; j < stuntdoubles_.size(); ++j) {
81 >      if (stuntdoubles_[j]->isRigidBody()) {
82 >        RigidBody* rb = static_cast<RigidBody*>(stuntdoubles_[j]);
83 >        rb->updateAtoms();
84 >      }
85 >    }
86 >  
87      for (int i = bs.firstOnBit(); i != -1; i = bs.nextOnBit(i)) {
88        center = stuntdoubles_[i];
89        centerPos = center->getPos();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines