Skip to content

Commit

Permalink
specialize ODEProblem
Browse files Browse the repository at this point in the history
Otherwise the alg and prob were disagreeing about the chunksize (since prepare_alg thought we weren't FunctionWrappered since it didn't know we were an ODE yet)
  • Loading branch information
oscardssmith authored Sep 3, 2024
1 parent e8062ef commit 9475a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function SciMLBase.__solve(prob::SciMLBase.AbstractSteadyStateProblem, alg::Dyna
(callback = CallbackSet(callback, odesolve_kwargs[:callback]))

# Construct and solve the ODEProblem
odeprob = ODEProblem{isinplace(prob)}(f, prob.u0, tspan, prob.p)
odeprob = ODEProblem{isinplace(prob), true}(f, prob.u0, tspan, prob.p)
odesol = solve(odeprob, alg.alg, args...; abstol, reltol, kwargs...,
odesolve_kwargs..., callback, save_end = true)

Expand Down

0 comments on commit 9475a1b

Please sign in to comment.