Skip to content

Commit ea78fb7

Browse files
fix mac math
1 parent 4a938d5 commit ea78fb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/Test/Biorth2Ortho.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <Biorth2Ortho.H>
2+
#include <EXPmath.H>
23

34
Biorth2Ortho::Biorth2Ortho(std::shared_ptr<AxiSymBiorth> b,
45
int Lmax, int Nmax, int Ngrid,
@@ -74,7 +75,7 @@ void Biorth2Ortho::generate()
7475
Real x = xmin + dx*i;
7576
if (laguerre) {
7677
double r = biorth->rb_to_r(x);
77-
Wtbl[l](n, i) = std::assoc_laguerre(n, 2, r/scl)*exp(-0.5*r/scl);
78+
Wtbl[l](n, i) = EXPmath::assoc_laguerre(n, 2, r/scl)*exp(-0.5*r/scl);
7879
}
7980
else if (alternate) {
8081
if (n % 2 == 0)
@@ -131,7 +132,7 @@ void Biorth2Ortho::generate()
131132

132133
Real f;
133134
if (laguerre) {
134-
f = std::assoc_laguerre(k, 2, r/scl)*exp(-0.5*r/scl);
135+
f = EXPmath::assoc_laguerre(k, 2, r/scl)*exp(-0.5*r/scl);
135136
}
136137
else if (alternate) {
137138
if (k % 2 == 0)

0 commit comments

Comments
 (0)