Ignore:
Timestamp:
Aug 2, 2017, 9:40:02 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued
Children:
bef5b3
Parents:
f10066
git-author:
Frederik Heber <frederik.heber@…> (08/02/17 21:40:00)
git-committer:
Frederik Heber <frederik.heber@…> (08/02/17 21:40:02)
Message:

tempcommit: Further fixing to how steps are treated.

  • last but two is the old step
  • last but one is the current step (we use its position and gradient).
  • last is the on we updated (we assume position has been copied).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/ForceAnnealingAction.cpp

    rf10066 r5f18f1  
    113113          Walker->getPositionAtStep(CurrentStep));
    114114      // force have already been calculated, hence copy them
    115       Walker->setAtomicVelocityAtStep(CurrentStep+1,
    116           Walker->getAtomicVelocityAtStep(CurrentStep));
    117       Walker->setAtomicForceAtStep(CurrentStep+1,
    118           Walker->getAtomicForceAtStep(CurrentStep));
     115      // the force to look at is always the one from the last step
     116//      Walker->setAtomicVelocityAtStep(CurrentStep+1,
     117//          Walker->getAtomicVelocityAtStep(CurrentStep));
     118//      Walker->setAtomicForceAtStep(CurrentStep+1,
     119//          Walker->getAtomicForceAtStep(CurrentStep));
    119120    }
    120121    // increment to next time step: re-creates bond graph
Note: See TracChangeset for help on using the changeset viewer.