Alternatively, you could also use a custom macro such as @threaded
from
Overhead of `Threads.@threads` - #23 by ranocha for development. Then, you will basically run the serial code without further allocations when starting Julia with a single thread, which can be helpful for development. We did that before switching to @batch
in Trixi.jl.
1 Like