Changeset 9e7089


Ignore:
Timestamp:
May 25, 2016, 7:13:57 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Children:
9cbbe1
Parents:
996ef1
git-author:
Frederik Heber <heber@…> (05/10/16 09:01:26)
git-committer:
Frederik Heber <heber@…> (05/25/16 07:13:57)
Message:

FIX: In debug we asserted possible deleteNode() in LinkedCell_model.

  • but this is wrong because deleteNode overrides addNode. If the update was not yet processed, the node was not added and hence cannot be found. This is also the desired behavior such that no real work is done if some node has been added and deleted in between two reads, e.h. saturation hydrogens.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/LinkedCell/LinkedCell_Model.cpp

    r996ef1 r9e7089  
    382382{
    383383  MapPointToCell::iterator iter = CellLookup.find(Walker);
    384   ASSERT(iter != CellLookup.end(),
    385       "LinkedCell_Model::deleteNode() - Walker not present in cell stored under CellLookup.");
     384  // must not ASSERT presence as addNode might have been overrided by this
     385  // deleteNode update and hence the node will not be present
    386386  if (iter != CellLookup.end()) {
    387387    // remove from lookup
Note: See TracChangeset for help on using the changeset viewer.