Commit cc5fc62
Fix retcode comparison to use SciMLBase.successful_retcode
The retcode comparison `sol.retcode != :Success` was comparing a
`SciMLBase.ReturnCode.T` enum value against a Symbol, which always
evaluates to `true` (they are different types). This caused the
`DataDrivenProblem(::DESolution)` constructor to always throw an
AssertionError, even for successful solves.
Replace with `DiffEqBase.SciMLBase.successful_retcode(sol)` which is
the modern SciML API for checking solution success.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d1fb364 commit cc5fc62
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
0 commit comments