| 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; |
| 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(); |