Skip to content

Commit

Permalink
expand solve dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 31, 2024
1 parent 7a6870f commit b7d0dfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DiffEqBase"
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
authors = ["Chris Rackauckas <[email protected]>"]
version = "6.151.5"
version = "6.152.0"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
4 changes: 2 additions & 2 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ function __solve(
kwargs...)
if second_time
throw(NoDefaultAlgorithmError())
elseif length(args) > 0 && !(first(args) isa Union{Nothing, AbstractDEAlgorithm})
elseif length(args) > 0 && !(first(args) isa Union{Nothing, AbstractDEAlgorithm, AbstractNonlinearAlgorithm})
throw(NonSolverError())
else
__solve(prob, nothing, args...; default_set = false, second_time = true, kwargs...)
Expand All @@ -1399,7 +1399,7 @@ function __init(prob::AbstractDEProblem, args...; default_set = false, second_ti
kwargs...)
if second_time
throw(NoDefaultAlgorithmError())
elseif length(args) > 0 && !(first(args) isa Union{Nothing, AbstractDEAlgorithm})
elseif length(args) > 0 && !(first(args) isa Union{Nothing, AbstractDEAlgorithm, AbstractNonlinearAlgorithm})
throw(NonSolverError())
else
__init(prob, nothing, args...; default_set = false, second_time = true, kwargs...)
Expand Down

0 comments on commit b7d0dfe

Please sign in to comment.