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

Comparing branches/development/src/selection/DistanceFinder.cpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1767 by gezelter, Fri Jul 6 22:01:58 2012 UTC

# Line 78 | Line 78 | namespace OpenMD {
78      OpenMDBitSet bsResult(nStuntDoubles_);
79      assert(bsResult.size() == bs.size());
80    
81 <    for (int j = 0; j < stuntdoubles_.size(); ++j) {
81 >    for (unsigned int j = 0; j < stuntdoubles_.size(); ++j) {
82        if (stuntdoubles_[j]->isRigidBody()) {
83          RigidBody* rb = static_cast<RigidBody*>(stuntdoubles_[j]);
84          rb->updateAtoms();
# Line 88 | Line 88 | namespace OpenMD {
88      for (int i = bs.firstOnBit(); i != -1; i = bs.nextOnBit(i)) {
89        center = stuntdoubles_[i];
90        centerPos = center->getPos();
91 <      for (int j = 0; j < stuntdoubles_.size(); ++j) {
91 >      for (unsigned int j = 0; j < stuntdoubles_.size(); ++j) {
92          Vector3d r =centerPos - stuntdoubles_[j]->getPos();
93          currSnapshot->wrapVector(r);
94          if (r.length() <= distance) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines