Ignore:
Timestamp:
Nov 7, 2017, 7:34:56 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued_betteresults
Children:
10b1ef
Parents:
0f9726
git-author:
Frederik Heber <frederik.heber@…> (08/03/17 10:47:26)
git-committer:
Frederik Heber <frederik.heber@…> (11/07/17 07:34:56)
Message:

FIX: ForceAnnealingAction's Undo is again working.

  • AtomicInfo::setAtom() and SetAtomsFromAtomicInfo() now accept a time step. This allows to undo changes to the old state (where forces might have been passed to) and the current state (modified by time integration).
  • TESTFIX: ForceAnnealing's undo test.conf was no longer valid since the additional time stepping is extracted (and the tests were changed already). I.e. the extra trajectory step is because of step-world-time and not because of force-annealing. Hence, it should not be undone here.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/UndoRedoHelpers.hpp

    r0f9726 r38ac25  
    1919#include "Atom/AtomicInfo.hpp"
    2020#include "Bond/BondInfo.hpp"
     21#include "WorldTime.hpp"
    2122
    2223namespace MoleCuilder {
     
    6162   *
    6263   * @param movedatoms vector of atomicInfo
     64   * @param _step set state information for given world time
    6365   */
    64   void SetAtomsFromAtomicInfo(const std::vector<AtomicInfo> &_movedatoms);
     66  void SetAtomsFromAtomicInfo(
     67      const std::vector<AtomicInfo> &_movedatoms,
     68      const unsigned int _step = WorldTime::getTime());
    6569
    6670  /** Selects all atoms inside the given vector
Note: See TracChangeset for help on using the changeset viewer.