--- trunk/src/brains/BlockSnapshotManager.cpp 2014/01/24 13:53:41 1965 +++ trunk/src/brains/BlockSnapshotManager.cpp 2014/01/24 14:17:42 1966 @@ -68,8 +68,11 @@ namespace OpenMD { int bytesPerStuntDouble = DataStorage::getBytesPerStuntDouble(storageLayout); int bytesPerCutoffGroup = DataStorage::getBytesPerStuntDouble(DataStorage::dslPosition); + + int bytesPerFrameData = Snapshot::getFrameDataSize(); int bytesPerFrame = (nRigidBodies_ + nAtoms_) * bytesPerStuntDouble - + nCutoffGroups_ * bytesPerCutoffGroup; + + nCutoffGroups_ * bytesPerCutoffGroup + + bytesPerFrameData; // total number of frames that can fit in memory //RealType frameCapacity = avaliablePhysMem / bytesPerFrame; @@ -96,21 +99,33 @@ namespace OpenMD { snapshots_.insert(snapshots_.begin(), nframes_, static_cast(NULL)); - std::cout << "-----------------------------------------------------"<