Skip to content

Commit bf1eeb7

Browse files
committed
update solve(prob::EnsembleProblem
1 parent a390882 commit bf1eeb7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/solve.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,10 +1015,11 @@ function solve_call(prob::SteadyStateProblem,
10151015
end
10161016

10171017
function solve(prob::EnsembleProblem, args...; kwargs...)
1018-
if isempty(args) || length(args) == 1 && typeof(first(args)) <: EnsembleAlgorithm
1019-
__solve(prob, nothing, args...; kwargs...)
1018+
alg = extract_alg(args, kwargs, prob.kwargs)
1019+
if length(args) > 1
1020+
__solve(prob, alg, Base.tail(args)...; kwargs...)
10201021
else
1021-
__solve(prob, args...; kwargs...)
1022+
__solve(prob, alg; kwargs...)
10221023
end
10231024
end
10241025
function solve(prob::SciMLBase.WeightedEnsembleProblem, args...; kwargs...)

0 commit comments

Comments
 (0)