Skip to content

Commit

Permalink
Fix ensemble indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 31, 2024
1 parent 07997dd commit c7df225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "2.48.0"
version = "2.48.1"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
2 changes: 1 addition & 1 deletion src/ensemble/ensemble_solutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function calculate_ensemble_errors(u; elapsedTime = 0.0, converged = false,
sol.W(densetimes[i])[1])
for i in eachindex(densetimes)] for sol in u]
udense = [u[j](densetimes) for j in 1:length(u)]
dense_weak_errors = [mean([udense[j][i] - u_analytic[j][i] for j in 1:length(u)])
dense_weak_errors = [mean([udense[j].u[i] - u_analytic[j][i] for j in 1:length(u)])
for i in eachindex(densetimes)]
dense_L2_errors = [sqrt.(sum(abs2, err) / length(err)) for err in dense_weak_errors]
L2_tmp = sqrt(sum(abs2, dense_L2_errors) / length(dense_L2_errors))
Expand Down

0 comments on commit c7df225

Please sign in to comment.