From 09687fc576ad5fae169fd45d445a347d78adb95f Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Sat, 17 Jun 2023 04:53:57 +0000 Subject: [PATCH] Fix use of local rather than integrator fields 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. --- src/solve.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/solve.jl b/src/solve.jl index a5c3d4ead1..d77a0f32be 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -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)