From b06b12d656c83618cf0b2e5b586146448aeeb1a4 Mon Sep 17 00:00:00 2001 From: Phillip Weinberg Date: Fri, 15 Dec 2023 22:22:27 -0500 Subject: [PATCH] fixing bug. --- src/interface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.jl b/src/interface.jl index 95c8ae8..d38343d 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -13,7 +13,7 @@ function Base.iterate(dp5_iterator::DP5Iterator) # integrate to first time integrate(dp5_iterator.solver, first(dp5_iterator.times)) # return value and index which is the state - return (dp5_iterator.times[dp5_iterator.index], dp5_iterator.solver.y), 2 + return (dp5_iterator.times[1], dp5_iterator.solver.y), 2 end # gets the next (t,y), return index+! which is the updated state