Changeset a6574a
- Timestamp:
- Aug 16, 2017, 9:26:38 AM (8 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued
- Parents:
- 08df4a
- git-author:
- Frederik Heber <frederik.heber@…> (08/16/17 09:25:45)
- git-committer:
- Frederik Heber <frederik.heber@…> (08/16/17 09:26:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Dynamics/ForceAnnealing.hpp ¶
r08df4a ra6574a 591 591 592 592 // apply the gathered updates and set remnant gradients for atomic annealing 593 Vector LargestUpdate; 593 594 for (std::map<atomId_t, Vector>::const_iterator iter = GatheredUpdates.begin(); 594 595 iter != GatheredUpdates.end(); ++iter) { … … 600 601 LOG(3, "DEBUG: Applying update " << update << " to atom #" << atomid 601 602 << ", namely " << *walker); 603 for (size_t i=0;i<NDIM;++i) 604 LargestUpdate[i] = std::max(LargestUpdate[i], fabs(update[i])); 602 605 walker->setPositionAtStep(_TimeStep, 603 606 walker->getPositionAtStep(CurrentTimeStep) + update); // - CommonTranslation); 604 607 } 608 LOG(1, "STATUS: Largest absolute update components are " << LargestUpdate); 605 609 606 610 return maxComponents;
Note:
See TracChangeset
for help on using the changeset viewer.