Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hendrik Ranocha <[email protected]>
  • Loading branch information
vchuravy and ranocha authored Aug 3, 2024
1 parent 83894a9 commit 8ac78b3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/auxiliary/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@
const TRIXI_UUID = UUID("a7f1ee26-1774-49b1-8366-f1abc58fbfcb")

"""
Trixi.set_polyster(toggle::Bool; force = true)
Trixi.set_polyester(toggle::Bool; force = true)
Toggle the usage of Polyster. By default Polyester is enabled, but it can
be useful for performance comparisions to switch to the Julia core backend.
Toggle the usage of [Polyester.jl](https://github.com/JuliaSIMD/Polyester.jl) for multithreading.
By default, Polyester.jl is enabled, but it can
be useful for performance comparisons to switch to the Julia core backend.
This does not fully disable Polyester only it's use as part of Trixi.jl's `@threaded`
This does not fully disable Polyester.jl,
buy only its use as part of Trixi.jl's `@threaded` macro.
macro.
"""
function set_polyster(toggle::Bool; force=true)
function set_polyester(toggle::Bool; force=true)
set_preferences!(TRIXI_UUID, "polyester" => string(toggle), force = force)
@info "Please restart Julia and reload Trixi.jl for the `polyester` change to take effect"
end
Expand Down

0 comments on commit 8ac78b3

Please sign in to comment.