From efc7f50239db76d9e1b1c21d68c93bb94b3c7a72 Mon Sep 17 00:00:00 2001 From: Gabriel Gerlero Date: Tue, 3 Sep 2024 12:30:42 -0300 Subject: [PATCH] Fix FiniteSolution evaluation at t=0 --- src/finite.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/finite.jl b/src/finite.jl index b5d5f0f..14867a4 100644 --- a/src/finite.jl +++ b/src/finite.jl @@ -435,7 +435,7 @@ function SciMLBase.successful_retcode(sol::FiniteSolution) end function (sol::FiniteSolution)(r, t) - if t ≤ sol.original.t[begin] + if t < sol.original.t[begin] @assert !isnothing(sol._pre) return sol._pre(r, t) end