--- trunk/src/brains/BlockSnapshotManager.cpp 2014/01/16 16:00:43 1964 +++ trunk/src/brains/BlockSnapshotManager.cpp 2014/01/24 14:17:42 1966 @@ -67,8 +67,13 @@ namespace OpenMD { // RealType avaliablePhysMem = physMem - rssMem; int bytesPerStuntDouble = DataStorage::getBytesPerStuntDouble(storageLayout); - int bytesPerFrame = (nRigidBodies_ + nAtoms_) * bytesPerStuntDouble; + int bytesPerCutoffGroup = DataStorage::getBytesPerStuntDouble(DataStorage::dslPosition); + int bytesPerFrameData = Snapshot::getFrameDataSize(); + int bytesPerFrame = (nRigidBodies_ + nAtoms_) * bytesPerStuntDouble + + nCutoffGroups_ * bytesPerCutoffGroup + + bytesPerFrameData; + // total number of frames that can fit in memory //RealType frameCapacity = avaliablePhysMem / bytesPerFrame; RealType frameCapacity = (RealType) memSize_ / (RealType) bytesPerFrame; @@ -94,20 +99,33 @@ namespace OpenMD { snapshots_.insert(snapshots_.begin(), nframes_, static_cast(NULL)); - std::cout << "-----------------------------------------------------"<