Skip to content

Commit

Permalink
Allow for machine-precision differences in determining libration region
Browse files Browse the repository at this point in the history
  • Loading branch information
barrywardell committed Sep 15, 2023
1 parent 3906498 commit ef219d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Kernel/TeukolskyMode.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
If[e != 0,
rmin = p/(1+e);
rmax = p/(1-e);
Module[{eps=2/10^Precision[{p,e}]}, rmin = (1-eps)rmin; rmax = (1+eps)rmax];
R = TeukolskyRadial[s, l, m, a, \[Omega], Method->{"NumericalIntegration","Domain"-> {"In"->{rmin,rmax}, "Up"->{rmin,rmax}}},
"Amplitudes" -> <|"In"-> R["In"]["UnscaledAmplitudes"], "Up"-> R["Up"]["UnscaledAmplitudes"]|>,
"RenormalizedAngularMomentum"-> R["In"]["RenormalizedAngularMomentum"], "Eigenvalue" -> R["In"]["Eigenvalue"]];
Expand Down

0 comments on commit ef219d6

Please sign in to comment.