| # | 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(); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |