Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac compile patch for AltMath #104

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
256 changes: 0 additions & 256 deletions include/dead.letter

This file was deleted.

5 changes: 3 additions & 2 deletions utils/SL/expontest.cc
michael-petersen marked this conversation as resolved.
Show resolved Hide resolved
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