Changeset f97bcc for src/World.cpp
- Timestamp:
- May 8, 2017, 2:00:10 PM (8 years ago)
- Branches:
- ForceAnnealing_goodresults, ForceAnnealing_tocheck
- Children:
- 05a2c5
- Parents:
- a2a8de
- git-author:
- Frederik Heber <heber@…> (03/23/17 03:36:28)
- git-committer:
- Frederik Heber <frederik.heber@…> (05/08/17 14:00:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/World.cpp
ra2a8de rf97bcc 234 234 } 235 235 236 void copyBondgraph(const unsigned int _srcstep, const unsigned int _deststep)236 static void copyBondgraph(const unsigned int _srcstep, const unsigned int _deststep) 237 237 { 238 238 // gather all bonds from _srcstep … … 259 259 } 260 260 261 static void copyAtoms(const unsigned int _srcstep, const unsigned int _deststep) 262 { 263 for (World::AtomIterator iter = World::getInstance().getAtomIter(); 264 iter != World::getInstance().atomEnd(); ++iter) { 265 atom * const Walker = *iter; 266 Walker->UpdateStep(_deststep); 267 Walker->setPositionAtStep(_deststep, Walker->getPositionAtStep(_srcstep)); 268 Walker->setAtomicVelocityAtStep(_deststep, Walker->getAtomicVelocityAtStep(_srcstep)); 269 Walker->setAtomicForceAtStep(_deststep, Walker->getAtomicForceAtStep(_srcstep)); 270 } 271 } 272 261 273 void World::setTime(const unsigned int _step) 262 274 { … … 264 276 const unsigned int oldstep = WorldTime::getTime(); 265 277 278 copyAtoms(oldstep, _step); 266 279 // 1. copy bond graph (such not each addBond causes GUI update) 267 280 if (!areBondsPresent(_step)) {
Note:
See TracChangeset
for help on using the changeset viewer.