Skip to content

Commit 0f36c93

Browse files
throw error on trivial timespan
1 parent 7a21e42 commit 0f36c93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/solve.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ function init{uType,tType,isinplace,NoiseClass,F,F2,F3,algType<:AbstractSDEAlgor
5555
error("Fixed timestep methods require a choice of dt or choosing the tstops")
5656
end
5757

58+
if tspan[1] == tspan[2]
59+
error("Timespan is trivial")
60+
end
61+
5862
d_discontinuities_col = collect(d_discontinuities)
5963

6064
if tdir>0

0 commit comments

Comments
 (0)