--- trunk/src/brains/SimSnapshotManager.cpp 2005/02/12 20:09:28 317 +++ trunk/src/brains/SimSnapshotManager.cpp 2005/02/13 06:57:48 318 @@ -44,13 +44,15 @@ namespace oopse { #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(){