Skip to content

Commit 0a34e30

Browse files
Mac compile patch for AltMath
1 parent a33c3a3 commit 0a34e30

File tree

2 files changed

+3
-258
lines changed

2 files changed

+3
-258
lines changed

include/dead.letter

-256
This file was deleted.

utils/SL/expontest.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <PotRZ.H> // Hankel computation for potential
1212
#include <gaussQ.H> // Gauss-Legendre quadrature
1313
#include <cxxopts.H>
14+
#include <EXPmath.H> // Compatibility for Mac
1415

1516
int main(int argc, char** argv)
1617
{
@@ -87,8 +88,8 @@ int main(int argc, char** argv)
8788

8889
auto potl = [A](double R) {
8990
double x = 0.5*R/A;
90-
return M_PI*R*(std::cyl_bessel_i(1, x) * std::cyl_bessel_k(0, x) -
91-
std::cyl_bessel_i(0, x) * std::cyl_bessel_k(1, x) );
91+
return M_PI*R*(AltMath::cyl_bessel_i(1, x) * AltMath::cyl_bessel_k(0, x) -
92+
AltMath::cyl_bessel_i(0, x) * AltMath::cyl_bessel_k(1, x) );
9293
};
9394

9495
// Write the results

0 commit comments

Comments
 (0)