Skip to content

Bump NonlinearSolveBase compat to 2.28 for polyalg Enzyme fix#1457

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:bump-nonlinearsolvebase-2.28
May 26, 2026
Merged

Bump NonlinearSolveBase compat to 2.28 for polyalg Enzyme fix#1457
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:bump-nonlinearsolvebase-2.28

Conversation

@ChrisRackauckas-Claude
Copy link
Copy Markdown
Contributor

Bumps NonlinearSolveBase compat from 2.27 to 2.28.

NonlinearSolveBase 2.28.0 makes the default NonlinearSolvePolyAlgorithm return a solution with original::Nothing instead of original::Any via the new store_original::Val field defaulting to Val(false) (SciML/NonlinearSolve.jl#938). This fixes Enzyme's IllegalTypeAnalysisException/MixedReturnException when reversing through solve(NonlinearProblem(...)) without an explicit algorithm pin (SciML/NonlinearSolve.jl#878).

NonlinearSolveBase 2.28.0 makes the default `NonlinearSolvePolyAlgorithm`
return a solution with `original::Nothing` instead of `original::Any`
via the new `store_original::Val` field defaulting to `Val(false)`.
This fixes Enzyme's `IllegalTypeAnalysisException`/`MixedReturnException`
when reversing through `solve(NonlinearProblem(...))` without an
explicit algorithm pin (SciML/NonlinearSolve.jl#878).

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
@ChrisRackauckas ChrisRackauckas merged commit 449edce into SciML:master May 26, 2026
41 of 50 checks passed
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