Changeset e59735
- Timestamp:
- May 9, 2017, 11:06:46 AM (8 years ago)
- Branches:
- ForceAnnealing_goodresults, ForceAnnealing_tocheck
- Children:
- d2a077a
- Parents:
- ba7a54
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/AtomAction/RandomPerturbationAction.cpp
rba7a54 re59735 78 78 const double rng_max = random.max(); 79 79 const double range = (rng_max - rng_min); 80 const double offset = (rng_max - rng_min);80 const double offset = rng_min; 81 81 82 82 std::vector<AtomicInfo> NewWalkers; … … 85 85 double noisecomponents[NDIM]; 86 86 for (size_t i=0;i<NDIM;++i) 87 noisecomponents[i] = params.noise.get()*( random()*2./range - offset);87 noisecomponents[i] = params.noise.get()*((random()-offset)*2./range - 1.); 88 88 const Vector noisevector(noisecomponents); 89 89 LOG(3, "DEBUG: Changing atom " << *first << "'s position by " << noisevector << ".");
Note:
See TracChangeset
for help on using the changeset viewer.