Skip to content

Commit 2e99906

Browse files
Add unique call on tstops
1 parent 25ed0ed commit 2e99906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time_evolution/callback_helpers/callback_helpers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function _generate_stochastic_kwargs(
2626

2727
# Ensure that the noise is stored in tlist. # TODO: Fix this directly in DiffEqNoiseProcess.jl
2828
# See https://github.com/SciML/DiffEqNoiseProcess.jl/issues/214 for example
29-
tstops = haskey(kwargs, :tstops) ? sort!(vcat(tlist, kwargs.tstops)) : tlist
29+
tstops = haskey(kwargs, :tstops) ? unique!(sort!(vcat(tlist, kwargs.tstops))) : tlist
3030
kwargs2 = merge(kwargs, (tstops = tstops,))
3131

3232
if SF === SaveFuncSSESolve

0 commit comments

Comments
 (0)