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 2066 by gezelter, Thu Mar 5 15:22:54 2015 UTC

# Line 51 | Line 51 | namespace OpenMD {
51    class CutoffGroup {
52    public:
53      
54 <    CutoffGroup() :  snapshotMan_(NULL), globalIndex(-1), localIndex_(-1) {
54 >    CutoffGroup() : globalIndex(-1), localIndex_(-1), snapshotMan_(NULL) {
55  
56        storage_ = &Snapshot::cgData;
57        haveTotalMass = false;
# 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