Skip to content

Commit

Permalink
fixing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 committed Dec 16, 2023
1 parent 6e02473 commit b06b12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b06b12d

Please sign in to comment.