--- trunk/OOPSE-2.0/src/brains/SimSnapshotManager.cpp 2005/02/07 19:14:26 1981 +++ trunk/OOPSE-2.0/src/brains/SimSnapshotManager.cpp 2005/02/13 06:57:48 2002 @@ -44,13 +44,15 @@ SimSnapshotManager::SimSnapshotManager(SimInfo* info) #include "utils/simError.h" namespace oopse { -SimSnapshotManager::SimSnapshotManager(SimInfo* info) : info_(info){ +SimSnapshotManager::SimSnapshotManager(SimInfo* info, int storageLayout = 255) + : SnapshotManager(storageLayout), info_(info){ + int nAtoms = info_->getNAtoms(); int nRigidBodies = info_->getNRigidBodies(); //allocate memory for snapshots - previousSnapshot_ = new Snapshot(nAtoms, nRigidBodies); - currentSnapshot_ = new Snapshot(nAtoms, nRigidBodies); + previousSnapshot_ = new Snapshot(nAtoms, nRigidBodies, storageLayout); + currentSnapshot_ = new Snapshot(nAtoms, nRigidBodies, storageLayout); } SimSnapshotManager::~SimSnapshotManager(){