Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Nov 8, 2024
1 parent 8cb7d21 commit 5cbdba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/literate-howto/threaded_assembly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function assemble_global!(
## Tell the @tasks loop to use the scheduler defined above
@set scheduler = scheduler
## Obtain a task local scratch and unpack it
@local scratch = make_scratch(scratch)
@local scratch = create_scratch(scratch)
local (; cell_cache, cellvalues, Ke, fe, assembler) = scratch
## Reinitialize the cell cache and then the cellvalues
reinit!(cell_cache, cellidx)
Expand All @@ -262,7 +262,7 @@ nothing # hide
# ```julia
# # using TaskLocalValues
# scratches = TaskLocalValue() do
# make_scratch(scratch)
# create_scratch(scratch)
# end
# OhMyThreads.tforeach(color; scheduler) do cellidx
# # Obtain a task local scratch and unpack it
Expand Down

0 comments on commit 5cbdba8

Please sign in to comment.