Skip to content

Commit

Permalink
Update src/auxiliary/math.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Hendrik Ranocha <[email protected]>
  • Loading branch information
DanielDoehring and ranocha authored Feb 22, 2024
1 parent 6c17cc8 commit 3d0e108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auxiliary/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Alternatively, you can set `type` to `"sqrt_Base"` to use the Julia built-in `sq
which provides a stack-trace of the error which might come in handy when debugging code.
"""
function set_sqrt_type(type; force = true)
@assert type == "sqrt_Trixi_NaN"||type == "sqrt_Base" "Only allowed `sqrt` function types are `\"sqrt_Trixi_NaN\"` and `\"sqrt_Base`\""
@assert type == "sqrt_Trixi_NaN"||type == "sqrt_Base" "Only allowed `sqrt` function types are `\"sqrt_Trixi_NaN\"` and `\"sqrt_Base\"`"
set_preferences!(TRIXI_UUID, "sqrt" => type, force = force)
@info "Please restart Julia and reload Trixi.jl for the `sqrt` computation change to take effect"
end
Expand Down

0 comments on commit 3d0e108

Please sign in to comment.