Skip to content

Commit

Permalink
Fix FiniteSolution evaluation at t=0
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Sep 3, 2024
1 parent efda74d commit efc7f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/finite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efc7f50

Please sign in to comment.