Skip to content

Commit

Permalink
fix: check if prob.f.sys exists before accessing it in remake
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 6, 2024
1 parent 3cf7743 commit 9869784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ function updated_u0_p(
if u0 === missing && p === missing
return state_values(prob), parameter_values(prob)
end
if prob.f.sys === nothing
if has_sys(prob.f) && prob.f.sys === nothing
if interpret_symbolicmap && eltype(p) !== Union{} && eltype(p) <: Pair
throw(ArgumentError("This problem does not support symbolic maps with " *
"`remake`, i.e. it does not have a symbolic origin. Please use `remake`" *
Expand Down

0 comments on commit 9869784

Please sign in to comment.