From 9a11a34dd75ab0ec1786141af2a79a7ef0e52217 Mon Sep 17 00:00:00 2001 From: Jacob Vaverka Date: Mon, 25 Apr 2022 09:42:19 -0400 Subject: [PATCH] Fix #3 --- _weave/lecture05/parallelism_overview.jmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_weave/lecture05/parallelism_overview.jmd b/_weave/lecture05/parallelism_overview.jmd index 6b8f164c..a6f7f4c0 100644 --- a/_weave/lecture05/parallelism_overview.jmd +++ b/_weave/lecture05/parallelism_overview.jmd @@ -432,7 +432,7 @@ const _u_cache_threads = [Vector{typeof(@SVector([1.0,0.0,0.0]))}(undef,1000) fo function compute_trajectory_mean5(u0,p) # u is automatically captured solve_system_save!(_u_cache_threads[Threads.threadid()],lorenz,u0,p,1000); - mean(_u_cache) + mean(_u_cache_threads[Threads.threadid()]) end @btime compute_trajectory_mean5(@SVector([1.0,0.0,0.0]),p) ```