Changeset 8ac6d0e for src/Atom


Ignore:
Timestamp:
Apr 11, 2018, 6:29:56 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.6.1, ChemicalSpaceEvaluator, Gui_displays_atomic_force_velocity, PythonUI_with_named_parameters, TremoloParser_IncreasedPrecision
Children:
8c5e2a
Parents:
897a01
git-author:
Frederik Heber <frederik.heber@…> (08/09/17 10:20:59)
git-committer:
Frederik Heber <frederik.heber@…> (04/11/18 06:29:56)
Message:

FIX: atominfo now provides correct TrajectoryUpdate notifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom_atominfo.cpp

    r897a01 r8ac6d0e  
    191191{
    192192  OBSERVE;
    193   NOTIFY(AtomObservable::PositionChanged);
    194193  VectorTrajectory_t::iterator iter = AtomicPosition.find(_step);
    195194  if (iter !=  AtomicPosition.end()) {
    196195    iter->second[i] = value;
    197196  } else {
     197    NOTIFY(TrajectoryChanged);
    198198    Vector newPos;
    199199    newPos[i] = value;
     
    206206        +" present after all?");
    207207  }
     208  if (WorldTime::getTime() == _step)
     209    NOTIFY(AtomObservable::PositionChanged);
    208210}
    209211
     
    278280    iter->second = _newvelocity;
    279281  } else {
     282    NOTIFY(TrajectoryChanged);
    280283#ifndef NDEBUG
    281284    std::pair<VectorTrajectory_t::iterator, bool> inserter =
     
    320323    iter->second = _newforce;
    321324  } else {
     325    NOTIFY(TrajectoryChanged);
    322326#ifndef NDEBUG
    323327    std::pair<VectorTrajectory_t::iterator, bool> inserter =
Note: See TracChangeset for help on using the changeset viewer.