Skip to content

Commit

Permalink
Fix constexpr with sqrt.
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi committed Dec 13, 2024
1 parent 8a563c6 commit 0e20e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Utils/ERF_HSEUtils.H
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace HSEutils
int iter=0;
int max_iter=30;
static constexpr Real tol_max = 1.0e-8;
static constexpr Real tol_grow = std::sqrt(10.0);
static constexpr Real tol_grow = 3.16228; // sqrt(10.0)
static constexpr Real eps = 1.0e-6;
static constexpr Real ieps = 1.0e6;
Real tol = std::min(m_tol,tol_max);
Expand Down

0 comments on commit 0e20e08

Please sign in to comment.