ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/brains/BlockSnapshotManager.cpp
(Generate patch)

Comparing trunk/src/brains/BlockSnapshotManager.cpp (file contents):
Revision 1879 by gezelter, Sun Jun 16 15:15:42 2013 UTC vs.
Revision 1963 by gezelter, Thu Jan 16 15:15:17 2014 UTC

# 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_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines