Skip to content

Commit 60cad73

Browse files
committed
add error for non ODEAliases alias
1 parent 8101928 commit 60cad73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/OrdinaryDiffEqCore/src/solve.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ function DiffEqBase.__init(
120120
@warn("Dense output is incompatible with saveat. Please use the SavingCallback from the Callback Library to mix the two behaviors.")
121121
end
122122

123+
if !(alias isa ODEAliases)
124+
error("Keyword argument `alias` must be a `ODEAliases`. ")
125+
end
126+
123127
progress && @logmsg(LogLevel(-1), progress_name, _id=progress_id, progress=0)
124128

125129
tType = eltype(prob.tspan)

0 commit comments

Comments
 (0)