# | Line 76 | Line 76 | namespace OpenMD { | |
---|---|---|
76 | // number of frames in each block given the need to hold multiple blocks | |
77 | // in memory at the same time: | |
78 | nSnapshotPerBlock_ = int(frameCapacity) / blockCapacity_; | |
79 | + | if (nSnapshotPerBlock_ <= 0) { |
80 | + | std::cerr << "not enough memory to hold two configs!" << std::endl; |
81 | + | } |
82 | reader_ = new DumpReader(info, filename); | |
83 | nframes_ = reader_->getNFrames(); | |
84 | int nblocks = nframes_ / nSnapshotPerBlock_; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |