Skip to content

Commit

Permalink
Merge pull request QMCPACK#5002 from prckent/fix_github_4975
Browse files Browse the repository at this point in the history
Fix 4975 via increased tolerance
  • Loading branch information
ye-luo committed May 21, 2024
2 parents 0d2812a + 1cddafa commit d0deeb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Particle/Lattice/LatticeAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ inline bool found_shorter_base(TinyVector<TinyVector<T, 3>, 3>& rb)
}

T rmax = std::sqrt(r2max);
T tol = 2.0 * rmax * eps; //Error propagation for x^2
T tol = 4.0 * rmax * eps; // Error propagation for x^2

TinyVector<TinyVector<T, 3>, 4> rb_new;
rb_new[0] = rb[0] + rb[1] - rb[2];
Expand Down

0 comments on commit d0deeb9

Please sign in to comment.