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 1963 by gezelter, Thu Jan 16 15:15:17 2014 UTC vs.
Revision 1964 by gezelter, Thu Jan 16 16:00:43 2014 UTC

# Line 178 | Line 178 | namespace OpenMD {
178          //in case, unloadBlock called multiple times
179          activeRefCount_[i - activeBlocks_.begin()]  = 0;
180        }
181 +
182 +      if (activeRefCount_[i-activeBlocks_.begin()] == 0) {
183 +        internalUnload(block);
184 +      }
185          
186        unloadSuccess = true;
187      } else {
# Line 201 | Line 205 | namespace OpenMD {
205    }
206  
207    void BlockSnapshotManager::internalUnload(int block) {
208 +    std::cerr << "called internal unload for block "<< block << "\n";
209      for (int i = blocks_[block].first; i < blocks_[block].second; ++i) {
210        delete snapshots_[i];
211        snapshots_[i] = NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines