Skip to content

Commit

Permalink
Fix use of local rather than integrator fields
Browse files Browse the repository at this point in the history
Found by inspection - from context, I belive these should be fields
rather than locals, otherwise this code is dead. I don't know what
this is for though.
  • Loading branch information
Keno committed Jun 17, 2023
1 parent 73bcbf0 commit 09687fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ function DiffEqBase.__init(prob::Union{DiffEqBase.AbstractODEProblem,
copyat_or_push!(ks, 1, [ks_prototype])
end
else
saveiter = 0 # Starts at 0 so first save is at 1
saveiter_dense = 0
integrator.saveiter = 0 # Starts at 0 so first save is at 1
integrator.saveiter_dense = 0
end

initialize_callbacks!(integrator, initialize_save)
Expand Down

0 comments on commit 09687fc

Please sign in to comment.