Skip to content

Commit

Permalink
untyped stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepijn de Vos committed Oct 19, 2023
1 parent ae30704 commit a44c420
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ensemble/ensemble_solutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ end
"""
$(TYPEDEF)
"""
struct EnsembleSolution{T, N, S, U} <: AbstractEnsembleSolution{T, N, S}
struct EnsembleSolution{T, N, S} <: AbstractEnsembleSolution{T, N, S}
u::S
elapsedTime::Float64
converged::Bool
stats::U
stats
end
function EnsembleSolution(sim, dims::NTuple{N}, elapsedTime, converged, stats) where {N}

Check warning on line 34 in src/ensemble/ensemble_solutions.jl

View check run for this annotation

Codecov / codecov/patch

src/ensemble/ensemble_solutions.jl#L34

Added line #L34 was not covered by tests
EnsembleSolution{eltype(eltype(sim)), N, typeof(sim), typeof(stats)}(sim, elapsedTime, converged, stats)
EnsembleSolution{eltype(eltype(sim)), N, typeof(sim)}(sim, elapsedTime, converged, stats)
end
function EnsembleSolution(sim, elapsedTime, converged, stats=nothing)
EnsembleSolution(sim, (length(sim),), elapsedTime, converged, stats)
Expand All @@ -41,8 +41,8 @@ function EnsembleSolution(sim::T, elapsedTime,
converged, stats=nothing) where {T <: AbstractVector{T2}
} where {T2 <:
AbstractArray}
EnsembleSolution{eltype(eltype(sim)), ndims(sim[1]) + 1,
typeof(sim), typeof(stats)}(sim,
EnsembleSolution{eltype(eltype(sim)), ndims(sim[1]) + 1, typeof(sim)}(
sim,
elapsedTime,
converged,
stats)
Expand Down

0 comments on commit a44c420

Please sign in to comment.