Skip to content

Commit 330ae5e

Browse files
Merge pull request #589 from ChrisRackauckas-Claude/fix-deprecation-warnings
Fix retcode comparison to use modern SciML API
2 parents d1fb364 + cc5fc62 commit 330ae5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/problem/type.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ function DataDrivenProblem(
518518
sol::T; use_interpolation = false,
519519
kwargs...
520520
) where {T <: DiffEqBase.DESolution}
521-
if sol.retcode != :Success
521+
if !DiffEqBase.SciMLBase.successful_retcode(sol)
522522
throw(AssertionError("The solution is not successful. Abort."))
523523
return
524524
end

0 commit comments

Comments
 (0)