- 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)
- Location:
- src/Atom
- Files:
-
- 2 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 -
src/Atom/AtomicInfo.hpp
r0f9726 r38ac25 20 20 21 21 #include "Bond/BondInfo.hpp" 22 #include "WorldTime.hpp" 22 23 23 24 class atom; … … 31 32 public: 32 33 AtomicInfo(); 33 AtomicInfo(const atom &_atom );34 AtomicInfo(const atom &_atom, const unsigned int _step = WorldTime::getTime()); 34 35 AtomicInfo(const AtomicInfo &_atominfo); 35 36 ~AtomicInfo(); 36 37 37 bool setAtom(atom &_atom ) const;38 bool setAtom(atom &_atom, const unsigned int _step = WorldTime::getTime()) const; 38 39 atomId_t getId() const; 39 40
Note:
See TracChangeset
for help on using the changeset viewer.