49 |
|
|
50 |
|
int nAtoms = info_->getNAtoms(); |
51 |
|
int nRigidBodies = info_->getNRigidBodies(); |
52 |
< |
|
52 |
> |
int nCutoffGroups = info_->getNCutoffGroups(); |
53 |
> |
|
54 |
|
//allocate memory for snapshots |
55 |
< |
previousSnapshot_ = new Snapshot(nAtoms, nRigidBodies, storageLayout); |
56 |
< |
currentSnapshot_ = new Snapshot(nAtoms, nRigidBodies, storageLayout); |
55 |
> |
previousSnapshot_ = new Snapshot(nAtoms, nRigidBodies, nCutoffGroups, storageLayout); |
56 |
> |
currentSnapshot_ = new Snapshot(nAtoms, nRigidBodies, nCutoffGroups, storageLayout); |
57 |
|
} |
58 |
|
|
59 |
|
SimSnapshotManager::~SimSnapshotManager(){ |