Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Dec 8, 2023
1 parent 4705fbe commit 0b11058
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/auxiliary/auxiliary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ macro threaded(expr)
# to reduce some overhead (and allocations) for serial execution.
#
return esc(quote
let
if Threads.nthreads() == 1
$(expr)
else
Threads.@threads $(expr)
end
end
end)
let
if Threads.nthreads() == 1
$(expr)
else
Threads.@threads $(expr)
end
end
end)
#
# However, the code below using `@batch` from Polyester.jl is more efficient,
# since this packages provides threads with less overhead. Since it is written
Expand All @@ -245,7 +245,7 @@ macro threaded(expr)
return esc(quote
Trixi.@batch $(expr)
end)
=#
=#
end

# @trixi_timeit timer() "some label" expression
Expand Down

0 comments on commit 0b11058

Please sign in to comment.