Changeset 8270be for src/Actions/MoleculeAction/ForceAnnealingAction.cpp
- Timestamp:
- Jul 20, 2017, 9:38:38 AM (8 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued
- Children:
- 6dfa37
- Parents:
- 1050ac
- git-author:
- Frederik Heber <frederik.heber@…> (06/27/17 21:03:16)
- git-committer:
- Frederik Heber <frederik.heber@…> (07/20/17 09:38:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/ForceAnnealingAction.cpp
r1050ac r8270be 95 95 Walker->setPositionAtStep(CurrentStep+1, 96 96 Walker->getPositionAtStep(CurrentStep)); 97 Walker->setAtomicVelocityAtStep(CurrentStep+1, 98 Walker->getAtomicVelocityAtStep(CurrentStep)); 99 Walker->setAtomicForceAtStep(CurrentStep+1, 100 Walker->getAtomicForceAtStep(CurrentStep)); 97 if (!params.forcesfile.get().string().empty()) { 98 // don't use forces or velocities from old step 99 Walker->setAtomicVelocityAtStep(CurrentStep+1, zeroVec); 100 Walker->setAtomicForceAtStep(CurrentStep+1, zeroVec); 101 } else { 102 // force have already been calculated, hence copy them 103 Walker->setAtomicVelocityAtStep(CurrentStep+1, 104 Walker->getAtomicVelocityAtStep(CurrentStep)); 105 Walker->setAtomicForceAtStep(CurrentStep+1, 106 Walker->getAtomicForceAtStep(CurrentStep)); 107 } 101 108 } 102 109 // increment to next time step: re-creates bond graph
Note:
See TracChangeset
for help on using the changeset viewer.