ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/primitives/CutoffGroup.hpp
(Generate patch)

Comparing trunk/src/primitives/CutoffGroup.hpp (file contents):
Revision 2057 by gezelter, Tue Mar 3 15:22:26 2015 UTC vs.
Revision 2065 by gezelter, Thu Mar 5 15:11:00 2015 UTC

# Line 101 | Line 101 | namespace OpenMD {
101      void updateCOM() {
102  
103        DataStorage& data = snapshotMan_->getCurrentSnapshot()->*storage_;
104 <      bool needsVel = (data.getStorageLayout() & DataStorage::dslVelocity);
104 >      bool needsVel = false;
105 >      if (data.getStorageLayout() & DataStorage::dslVelocity) needsVel = true;
106  
107        if (cutoffAtomList.size() == 1) {
108          data.position[localIndex_] = cutoffAtomList[0]->getPos();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines