From 71f5c7ad348efe48c10b4a79f505645c0fe9a3ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Rueda-Ram=C3=ADrez?= Date: Thu, 19 Oct 2023 12:48:21 +0200 Subject: [PATCH] Modified initialization of tstops to ensure a stop at the end of the simulation --- src/time_integration/methods_SSP.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/time_integration/methods_SSP.jl b/src/time_integration/methods_SSP.jl index 424c25ec398..7865e1d0963 100644 --- a/src/time_integration/methods_SSP.jl +++ b/src/time_integration/methods_SSP.jl @@ -60,6 +60,7 @@ end function SimpleIntegratorSSPOptions(callback, tspan; maxiters = typemax(Int), kwargs...) tstops_internal = BinaryHeap{eltype(tspan)}(FasterForward()) + push!(tstops_internal, last(tspan)) push!(tstops_internal, 2 * last(tspan)) SimpleIntegratorSSPOptions{typeof(callback), typeof(tstops_internal)}(callback, false, Inf,