Changeset 4919f0 for src/Atom/atom_atominfo.cpp
- Timestamp:
- Aug 3, 2017, 10:46:48 AM (8 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued
- Children:
- cee565
- Parents:
- fcc860
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Atom/atom_atominfo.cpp
rfcc860 r4919f0 101 101 } 102 102 103 void AtomInfo::removeTrajectoryStep(const unsigned int _step) 103 void AtomInfo::eraseInTrajctory( 104 VectorTrajectory_t &_trajectory, 105 const unsigned int _firststep, const unsigned int _laststep) 106 { 107 const VectorTrajectory_t::iterator firstiter = _trajectory.lower_bound(_firststep); 108 const VectorTrajectory_t::iterator lastiter = _trajectory.upper_bound(_laststep); 109 _trajectory.erase(firstiter, lastiter); 110 } 111 112 void AtomInfo::removeTrajectorySteps(const unsigned int _firststep, const unsigned int _laststep) 104 113 { 105 114 NOTIFY(TrajectoryChanged); 106 AtomicPosition.erase(_step);107 AtomicVelocity.erase(_step);108 AtomicForce.erase(_step);109 LOG(5,"AtomInfo::removeTrajectoryStep () called, size is ("115 eraseInTrajctory(AtomicPosition, _firststep, _laststep); 116 eraseInTrajctory(AtomicVelocity, _firststep, _laststep); 117 eraseInTrajctory(AtomicForce, _firststep, _laststep); 118 LOG(5,"AtomInfo::removeTrajectorySteps() called, size is (" 110 119 << AtomicPosition.size() << "," 111 120 << AtomicVelocity.size() << ","
Note:
See TracChangeset
for help on using the changeset viewer.