Skip to content

Commit

Permalink
revert new dispatches to check if tests pass with the relaxed type si…
Browse files Browse the repository at this point in the history
…gnature:
  • Loading branch information
Vaibhavdixit02 committed Nov 3, 2023
1 parent 23754a8 commit 9431771
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/ensemble/ensemble_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,6 @@ function EnsembleProblem(; prob,
EnsembleProblem(prob; prob_func, output_func, reduction, u_init, safetycopy)
end

function EnsembleProblem(; prob,
u0s::Union{Nothing, Vector{uType}} = nothing,
prob_func = (prob, i, repeat) -> remake(prob, u0 = u0s[i]),
output_func = DEFAULT_OUTPUT_FUNC,
reduction = DEFAULT_REDUCTION,
u_init = nothing, p = nothing,
safetycopy = prob_func !== DEFAULT_PROB_FUNC) where {uType}
EnsembleProblem(prob; prob_func, output_func, reduction, u_init, safetycopy)
end

function EnsembleProblem(; prob,
trajectories::Int,
prob_func,
output_func = DEFAULT_OUTPUT_FUNC,
reduction = DEFAULT_REDUCTION,
u_init = nothing, p = nothing,
safetycopy = prob_func !== DEFAULT_PROB_FUNC)
EnsembleProblem(prob; prob_func, output_func, reduction, u_init, safetycopy)
end

struct WeightedEnsembleProblem{T1 <: AbstractEnsembleProblem, T2 <: AbstractVector} <:
AbstractEnsembleProblem
ensembleprob::T1
Expand Down

0 comments on commit 9431771

Please sign in to comment.