We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73bcbf0 commit 410555cCopy full SHA for 410555c
src/solve.jl
@@ -483,11 +483,12 @@ function DiffEqBase.__init(prob::Union{DiffEqBase.AbstractODEProblem,
483
integrator.saveiter += 1 # Starts at 1 so first save is at 2
484
integrator.saveiter_dense += 1
485
copyat_or_push!(ts, 1, t)
486
+ # N.B.: integrator.u can be modified by initialized_dae!
487
if save_idxs === nothing
488
copyat_or_push!(timeseries, 1, integrator.u)
489
copyat_or_push!(ks, 1, [rate_prototype])
490
else
- copyat_or_push!(timeseries, 1, u_initial, Val{false})
491
+ copyat_or_push!(timeseries, 1, integrator.u[save_idxs], Val{false})
492
copyat_or_push!(ks, 1, [ks_prototype])
493
end
494
0 commit comments