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.
2 parents 216a7a5 + 410555c commit 05909e8Copy full SHA for 05909e8
src/solve.jl
@@ -501,11 +501,12 @@ function DiffEqBase.__init(
501
integrator.saveiter += 1 # Starts at 1 so first save is at 2
502
integrator.saveiter_dense += 1
503
copyat_or_push!(ts, 1, t)
504
+ # N.B.: integrator.u can be modified by initialized_dae!
505
if save_idxs === nothing
506
copyat_or_push!(timeseries, 1, integrator.u)
507
copyat_or_push!(ks, 1, [rate_prototype])
508
else
- copyat_or_push!(timeseries, 1, u_initial, Val{false})
509
+ copyat_or_push!(timeseries, 1, integrator.u[save_idxs], Val{false})
510
copyat_or_push!(ks, 1, [ks_prototype])
511
end
512
0 commit comments