Skip to content

Commit

Permalink
fix: remove the threads macro
Browse files Browse the repository at this point in the history
  • Loading branch information
fjebaker committed Apr 26, 2024
1 parent be99314 commit c4a91cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/02-threaded-julia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ plot(as, areas)
# But I *actually* have two parameters I am interested in...
function integrate_f(x₁, x₂, a::Vector, b::Vector)
areas = zeros(length(a), length(b))
Threads.@threads for i in eachindex(a)
for i in eachindex(a)
aᵢ = a[i]
for j in eachindex(b)
bᵢ = b[j]
Expand Down

0 comments on commit c4a91cb

Please sign in to comment.