Skip to content

Conversation

ejanzer
Copy link

@ejanzer ejanzer commented Aug 7, 2025

The for loop in GaussLegendreXW initializes an iterator variable it that shadows a previously declared it outside the loop. The outer it is compared to MAXIT, but because it's shadowed it's never updated, so the panic will never be triggered if it did not converge.

A linter surfaced this issue for me. I don't know how to test it, though...

The for loop in GaussLegendreXW initializes an iterator variable `it` that shadows a previously declared `it` outside the loop. The outer `it` is compared to `MAXIT`, but because it's shadowed it's never updated, so the panic will never be triggered if it did not converge.
@cpmech
Copy link
Owner

cpmech commented Aug 7, 2025

Hi, thanks for the fix. Testing this case it's tricky because we need to find a failing problem. But don't worry, I'll work on this in the upcoming weeks. Thanks again.

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

Successfully merging this pull request may close these issues.

2 participants