Skip to content

Commit 6571149

Browse files
committed
Right timespan
1 parent 5ae430d commit 6571149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DelayLotkaVolterra/VolterraExp.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ plot!(a_solution)
191191
# Look at long term prediction
192192
t_long = (0.0, 50.0)
193193
a_prob = ODEProblem(approx, u0, t_long, ps)
194-
a_solution = solve(a_prob, Tsit5(), saveat = 0.5) # Using higher tolerances here results in exit of julia
194+
a_solution = solve(a_prob, Tsit5()) # Using higher tolerances here results in exit of julia
195195
plot(a_solution)
196196

197197
prob_true2 = ODEProblem(lotka, u0, t_long, p_)
198-
solution_long = solve(prob_true2, Tsit5(), saveat = 0.5)
198+
solution_long = solve(prob_true2, Tsit5(), saveat = a_solution.t)
199199
plot!(solution_long)
200200

201201

0 commit comments

Comments
 (0)