Changeset 38ac25 for src/Atom/AtomicInfo.cpp
- Timestamp:
- Nov 7, 2017, 7:34:56 AM (7 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Atom/AtomicInfo.cpp
r0f9726 r38ac25 58 58 {} 59 59 60 AtomicInfo::AtomicInfo(const atom &_atom ) :61 Position(_atom.getPosition ()),60 AtomicInfo::AtomicInfo(const atom &_atom, unsigned int _step) : 61 Position(_atom.getPositionAtStep(_step)), 62 62 Type(_atom.getType()), 63 63 charge(_atom.getCharge()), 64 Velocity(_atom.getAtomicVelocity ()),65 Force(_atom.getAtomicForce ()),64 Velocity(_atom.getAtomicVelocityAtStep(_step)), 65 Force(_atom.getAtomicForceAtStep(_step)), 66 66 FatherId(_atom.father->getId()), 67 67 MolId(0), … … 101 101 102 102 103 bool AtomicInfo::setAtom(atom &_atom ) const103 bool AtomicInfo::setAtom(atom &_atom, const unsigned int _step) const 104 104 { 105 _atom.setPosition (Position);105 _atom.setPositionAtStep(_step, Position); 106 106 _atom.setType(Type); 107 107 _atom.setCharge(charge); 108 _atom.setAtomicVelocity (Velocity);109 _atom.setAtomicForce (Force);108 _atom.setAtomicVelocityAtStep(_step, Velocity); 109 _atom.setAtomicForceAtStep(_step, Force); 110 110 111 111 // set old id
Note:
See TracChangeset
for help on using the changeset viewer.