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

WCSSPH2XY #37

Open
PaddyLeahy opened this issue Aug 25, 2023 · 0 comments
Open

WCSSPH2XY #37

PaddyLeahy opened this issue Aug 25, 2023 · 0 comments

Comments

@PaddyLeahy
Copy link

In the 'MOL' (Mollweide) case, the Newton iteration can get stuck in a loop before tolerance is reached because the numerator in the iteration step reaches the double precision "EPS" value (defined as the smallest value for which 1-eps NE 1). Fix is to separately test for this:

machine_constants = MACHAR(/DOUBLE)
eps = machine_constants.eps > machine_constants.epsneg
repeat begin
...
endrep until (old condition OR MAX(ABS(numerator) LE eps)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant