- Timestamp:
- Apr 10, 2018, 6:43:12 AM (7 years ago)
- Branches:
- AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, PythonUI_with_named_parameters, StoppableMakroAction, TremoloParser_IncreasedPrecision
- Children:
- c87d6e
- Parents:
- 8c6b68
- git-author:
- Frederik Heber <frederik.heber@…> (08/03/17 10:47:26)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/10/18 06:43:12)
- Location:
- src/Atom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Atom/AtomicInfo.cpp
r8c6b68 r6145577 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
r8c6b68 r6145577 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.