Skip to content

Commit 4fca547

Browse files
Merge pull request #537 from Jonas-a-Zimmermann/master
added Error on adaptive for non adaptive algorithms
2 parents 3e94b16 + 26c01ca commit 4fca547

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
@@ -110,6 +110,10 @@ function DiffEqBase.__init(
110110
error("The algorithm is not compatible with the chosen noise type. Please see the documentation on the solver methods")
111111
end
112112

113+
if adaptive && !isadaptive(_prob,alg)
114+
error("The given solver is a Fixed timestep method and does not support adaptivity.")
115+
end
116+
113117
progress && @logmsg(LogLevel(-1),progress_name,_id=_id = :StochasticDiffEq,progress=0)
114118

115119
tType = eltype(prob.tspan)

0 commit comments

Comments
 (0)