We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b0a385 commit 8c17212Copy full SHA for 8c17212
src/ensemble/basic_ensemble_solve.jl
@@ -57,10 +57,10 @@ function __solve(prob::EnsembleProblem{<:AbstractVector{<:AbstractSciMLProblem}}
57
end
58
59
function __solve(prob::AbstractEnsembleProblem,
60
- alg::Union{AbstractDEAlgorithm, Nothing},
+ alg::A,
61
ensemblealg::BasicEnsembleAlgorithm;
62
trajectories, batch_size = trajectories,
63
- pmap_batch_size = batch_size ÷ 100 > 0 ? batch_size ÷ 100 : 1, kwargs...)
+ pmap_batch_size = batch_size ÷ 100 > 0 ? batch_size ÷ 100 : 1, kwargs...) where {A}
64
num_batches = trajectories ÷ batch_size
65
num_batches < 1 &&
66
error("trajectories ÷ batch_size cannot be less than 1, got $num_batches")
0 commit comments