Changeset ff60380 for src/Dynamics/ForceAnnealing.hpp
- Timestamp:
- Aug 8, 2017, 8:43:42 PM (8 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued
- Children:
- 5bbaca
- Parents:
- d74bb5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Dynamics/ForceAnnealing.hpp
rd74bb5 rff60380 175 175 // extract largest components for showing progress of annealing 176 176 for(size_t i=0;i<NDIM;++i) 177 if (currentGradient[i] > maxComponents[i]) 178 maxComponents[i] = currentGradient[i]; 177 maxComponents[i] = std::max(maxComponents[i], fabs(currentGradient[i])); 179 178 180 179 // steps may go back and forth again (updates are of same magnitude but … … 266 265 // extract largest components for showing progress of annealing 267 266 for(size_t i=0;i<NDIM;++i) 268 if (currentGradient[i] > maxComponents[i]) 269 maxComponents[i] = currentGradient[i]; 267 maxComponents[i] = std::max(maxComponents[i], fabs(currentGradient[i])); 270 268 271 269 // steps may go back and forth again (updates are of same magnitude but … … 578 576 const Vector currentGradient = walker.getAtomicForceAtStep(CurrentTimeStep); 579 577 for(size_t i=0;i<NDIM;++i) 580 if (currentGradient[i] > maxComponents[i]) 581 maxComponents[i] = currentGradient[i]; 578 maxComponents[i] = std::max(maxComponents[i], fabs(currentGradient[i])); 582 579 } 583 580
Note:
See TracChangeset
for help on using the changeset viewer.