Skip to content

fix type stability of SimpleNonlinearSolve #536

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

oscardssmith
Copy link
Member

@oscardssmith oscardssmith commented Mar 3, 2025

This fixes an issue where we were returning a solution with a different alg.autodiff or prob if we had an InitialFailure vs a successful solve. This removes the allocations we were seeing in https://docs.sciml.ai/NonlinearSolve/stable/tutorials/code_optimization/#Further-Optimizations-for-Small-Nonlinear-Solves-with-Static-Arrays-and-SimpleNonlinearSolve.

Also fixes #536

@AayushSabharwal
Copy link
Member

MTK CI tests this so it'd be good to wait for it

@oscardssmith
Copy link
Member Author

looks like I broke Halley a bit. Fixes incoming.

@oscardssmith
Copy link
Member Author

CI looks happy (other than a weird windows issue that definitely isn't related)

@ChrisRackauckas ChrisRackauckas merged commit e73bb5b into SciML:master Mar 3, 2025
39 of 51 checks passed
@oscardssmith oscardssmith deleted the os/fix-type-stability branch March 4, 2025 00:04
@baggepinnen
Copy link

baggepinnen commented Mar 4, 2025

new release?

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

Successfully merging this pull request may close these issues.

4 participants