You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
solutions = [DiffEqBase.calculate_ensemble_errors(sim;weak_timeseries_errors=weak_timeseries_errors,weak_dense_errors=weak_dense_errors) for sim in _solutions]
49
+
50
+
iftypeof(prob) <:AbstractEnsembleProblem
51
+
ensemble_prob = prob
52
+
else
53
+
ensemble_prob =EnsembleProblem(prob)
54
+
end
55
+
56
+
_solutions =Array{Any}(undef,length(dts))
57
+
for i in1:length(dts)
58
+
sol =solve(ensemble_prob,alg,ensemblealg;dt=dts[i],adaptive=adaptive,
additional_errors[k] = [sol.weak_errors[k] for sol in solutions]
67
+
68
+
if expected_value ==nothing
69
+
solutions = [DiffEqBase.calculate_ensemble_errors(sim;weak_timeseries_errors=weak_timeseries_errors,weak_dense_errors=weak_dense_errors) for sim in _solutions]
70
+
# Now Calculate Weak Errors
71
+
additional_errors =Dict()
72
+
for k inkeys(solutions[1].weak_errors)
73
+
additional_errors[k] = [sol.weak_errors[k] for sol in solutions]
0 commit comments