Skip to content

Commit

Permalink
Modified initialization of tstops to ensure a stop at the end of the …
Browse files Browse the repository at this point in the history
…simulation
  • Loading branch information
amrueda committed Oct 19, 2023
1 parent 05fcaaa commit 71f5c7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/time_integration/methods_SSP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 71f5c7a

Please sign in to comment.