Skip to content

Commit

Permalink
Add C++17 workaround for sqrt constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-petersen committed Jul 9, 2024
1 parent 1dfb00c commit 76c68cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expui/FieldBasis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ namespace BasisClasses
double u, double v, double w)
{
constexpr std::complex<double> I(0, 1);
double fac0 = 1.0/sqrt(4*M_PI);
constexpr double fac0 = 0.25*M_2_SQRTPI;

int tid = omp_get_thread_num();
PS3 pos{x, y, z}, vel{u, v, w};
Expand Down

0 comments on commit 76c68cf

Please sign in to comment.