Skip to content

Commit

Permalink
only merge stats on default reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepijn de Vos committed Oct 11, 2023
1 parent 365530b commit 7c0b301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ensemble/basic_ensemble_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function __solve(prob::AbstractEnsembleProblem,
end
end
_u = tighten_container_eltype(u)
stats = merge_stats(_u)
stats = prob.reduction === DEFAULT_REDUCTION ? merge_stats(_u) : nothing
return EnsembleSolution(_u, elapsed_time, converged, stats)

Check warning on line 98 in src/ensemble/basic_ensemble_solve.jl

View check run for this annotation

Codecov / codecov/patch

src/ensemble/basic_ensemble_solve.jl#L97-L98

Added lines #L97 - L98 were not covered by tests
end

Expand Down

0 comments on commit 7c0b301

Please sign in to comment.