Ignore:
Timestamp:
Apr 23, 2021, 8:34:22 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
9f55b9
Parents:
ef0f8f
git-author:
Frederik Heber <frederik.heber@…> (10/03/20 21:54:41)
git-committer:
Frederik Heber <frederik.heber@…> (04/23/21 20:34:22)
Message:

FIX: LinkedCell_model executes deletes right away.

  • we use the memory address as key in the queue map. If an atom is removed and another new one happens to land at the same address, this will confuse the queue and end in an assertion failure as the update will be overriden and the atom is already present.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/LinkedCell/LinkedCell_Model_changeModel.cpp

    ref0f8f rf3eb6a  
    9393}
    9494
     95/**
     96 * Removes all contained updates for a specific tesselpoint.
     97 *
     98 */
     99void LinkedCell::LinkedCell_Model::changeModel::removeUpdates(const TesselPoint *Walker)
     100{
     101  queue.erase(Walker);
     102}
     103
    95104/** Empties changeModel::queue by performing all update functions.
    96105 *
Note: See TracChangeset for help on using the changeset viewer.