# | Line 59 | Line 59 | BlockSnapshotManager::BlockSnapshotManager(SimInfo* in | |
---|---|---|
59 | double rssMem = residentMem(); | |
60 | double avaliablePhysMem = physMem - rssMem; | |
61 | ||
62 | – | std::cout << "physmem = " << int(physMem) << "\trssMem = "<< rssMem << "\t availablePhysMem = " << avaliablePhysMem <<std::endl; |
62 | int bytesPerStuntDouble = DataStorage::getBytesPerStuntDouble(storageLayout); | |
63 | ||
64 | int bytesPerFrame = (nRigidBodies_ + nAtoms_) * bytesPerStuntDouble; | |
# | Line 67 | Line 66 | BlockSnapshotManager::BlockSnapshotManager(SimInfo* in | |
66 | int frameCapacity = int (avaliablePhysMem / bytesPerFrame); | |
67 | ||
68 | nSnapshotPerBlock_ = frameCapacity /blockCapacity_ ; | |
70 | – | |
69 | reader_ = new DumpReader(info, filename); | |
70 | nframes_ = reader_->getNFrames(); | |
71 | ||
# | Line 83 | Line 81 | BlockSnapshotManager::BlockSnapshotManager(SimInfo* in | |
81 | blocks_.back().second = nframes_; | |
82 | ||
83 | snapshots_.insert(snapshots_.begin(), nframes_, static_cast<Snapshot*>(NULL)); | |
84 | + | |
85 | + | std::cout << "physmem = " << int(physMem) << "\trssMem = "<< int(rssMem) << "\t availablePhysMem = " << int(avaliablePhysMem) <<std::endl; |
86 | + | std::cout << "nSnapshotPerBlock = " << nSnapshotPerBlock_ << "\t total block = " << nblocks << std::endl; |
87 | ||
88 | } | |
89 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |