Changeset 2a0a651
- Timestamp:
- Nov 29, 2017, 11:06:25 PM (7 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued_betteresults
- Parents:
- 0dd99b
- git-author:
- Frederik Heber <frederik.heber@…> (08/16/17 09:25:45)
- git-committer:
- Frederik Heber <frederik.heber@…> (11/29/17 23:06:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Dynamics/ForceAnnealing.hpp
r0dd99b r2a0a651 608 608 609 609 // apply the gathered updates and set remnant gradients for atomic annealing 610 Vector LargestUpdate; 610 611 for (std::map<atomId_t, Vector>::const_iterator iter = GatheredUpdates.begin(); 611 612 iter != GatheredUpdates.end(); ++iter) { … … 617 618 LOG(3, "DEBUG: Applying update " << update << " to atom #" << atomid 618 619 << ", namely " << *walker); 620 for (size_t i=0;i<NDIM;++i) 621 LargestUpdate[i] = std::max(LargestUpdate[i], fabs(update[i])); 619 622 walker->setPositionAtStep(_TimeStep, 620 623 walker->getPositionAtStep(CurrentTimeStep) + update); // - CommonTranslation); 621 624 } 625 LOG(1, "STATUS: Largest absolute update components are " << LargestUpdate); 622 626 623 627 return maxComponents;
Note:
See TracChangeset
for help on using the changeset viewer.