Skip to content

Commit da386a6

Browse files
Merge pull request #521 from asinghvi17/patch-3
More explanatory error message when missing algorithm
2 parents 13ed275 + d4d4582 commit da386a6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/solve.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,15 @@ end
224224

225225
function __solve(prob::DEProblem,args...;default_set=false,second_time=false,kwargs...)
226226
if second_time
227-
error("Default algorithm choices require DifferentialEquations.jl. Please specify an algorithm or import DifferentialEquations directly.")
227+
error("""
228+
Default algorithm choices require DifferentialEquations.jl.
229+
Please specify an algorithm (e.g., `solve(prob, Tsit5())` for an ODE)
230+
or import DifferentialEquations directly.
231+
232+
You can find the list of available solvers at https://docs.sciml.ai/stable/solvers/ode_solve/
233+
and its associated pages.
234+
"""
235+
)
228236
elseif length(args) > 0 && !(typeof(args[1]) <: Union{Nothing,DEAlgorithm})
229237
error("Inappropiate solve command. The arguments do not make sense. Likely, you gave an algorithm which does not actually exist (or does not `<:DiffEqBase.DEAlgorithm`)")
230238
else

0 commit comments

Comments
 (0)