--- trunk/src/brains/BlockSnapshotManager.cpp 2014/01/16 15:15:17 1963 +++ trunk/src/brains/BlockSnapshotManager.cpp 2014/01/24 13:53:41 1965 @@ -67,7 +67,9 @@ namespace OpenMD { // RealType avaliablePhysMem = physMem - rssMem; int bytesPerStuntDouble = DataStorage::getBytesPerStuntDouble(storageLayout); - int bytesPerFrame = (nRigidBodies_ + nAtoms_) * bytesPerStuntDouble; + int bytesPerCutoffGroup = DataStorage::getBytesPerStuntDouble(DataStorage::dslPosition); + int bytesPerFrame = (nRigidBodies_ + nAtoms_) * bytesPerStuntDouble + + nCutoffGroups_ * bytesPerCutoffGroup; // total number of frames that can fit in memory //RealType frameCapacity = avaliablePhysMem / bytesPerFrame; @@ -102,6 +104,7 @@ namespace OpenMD { //std::cout << "Memory available for OpenMD:\t" << (unsigned long)avaliablePhysMem << " bytes" <