Skip to content

Commit

Permalink
Mac compile patch for AltMath
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-petersen committed Dec 30, 2024
1 parent a33c3a3 commit 0a34e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 258 deletions.
256 changes: 0 additions & 256 deletions include/dead.letter

This file was deleted.

5 changes: 3 additions & 2 deletions utils/SL/expontest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <PotRZ.H> // Hankel computation for potential
#include <gaussQ.H> // Gauss-Legendre quadrature
#include <cxxopts.H>
#include <EXPmath.H> // Compatibility for Mac

int main(int argc, char** argv)
{
Expand Down Expand Up @@ -87,8 +88,8 @@ int main(int argc, char** argv)

auto potl = [A](double R) {
double x = 0.5*R/A;
return M_PI*R*(std::cyl_bessel_i(1, x) * std::cyl_bessel_k(0, x) -
std::cyl_bessel_i(0, x) * std::cyl_bessel_k(1, x) );
return M_PI*R*(AltMath::cyl_bessel_i(1, x) * AltMath::cyl_bessel_k(0, x) -
AltMath::cyl_bessel_i(0, x) * AltMath::cyl_bessel_k(1, x) );
};

// Write the results
Expand Down

0 comments on commit 0a34e30

Please sign in to comment.