Skip to content

Commit 26c01ca

Browse files
added Error on adaptive for non adaptive alg
1 parent 4b22fcb commit 26c01ca

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)