Skip to content

Commit

Permalink
warn check args (#140)
Browse files Browse the repository at this point in the history
* at-turbo: warn_check_args=false

* be more explicit about using statements

* set version to 0.5.19
  • Loading branch information
ranocha committed Jul 1, 2022
1 parent 60219d6 commit 0efb8f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SummationByPartsOperators"
uuid = "9f78cca6-572e-554e-b819-917d2f1cf240"
author = ["Hendrik Ranocha"]
version = "0.5.18"
version = "0.5.19"

[deps]
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Expand Down
16 changes: 8 additions & 8 deletions src/SBP_operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ end
if mode <: ThreadedMode
quote
Base.@_inline_meta
@tturbo for i in (left_boundary_width+1):(length(dest)-right_boundary_width)
@tturbo warn_check_args=false for i in (left_boundary_width+1):(length(dest)-right_boundary_width)
dest[i] = β*dest[i] + α*$ex
end
end
Expand All @@ -230,7 +230,7 @@ end
else
quote
Base.@_inline_meta
@turbo for i in (left_boundary_width+1):(length(dest)-right_boundary_width)
@turbo warn_check_args=false for i in (left_boundary_width+1):(length(dest)-right_boundary_width)
dest[i] = β*dest[i] + α*$ex
end
end
Expand All @@ -254,7 +254,7 @@ end
if mode <: ThreadedMode
quote
Base.@_inline_meta
@tturbo for i in (firstindex(dest) + $left_boundary_width):(lastindex(dest) - $right_boundary_width)
@tturbo warn_check_args=false for i in (firstindex(dest) + $left_boundary_width):(lastindex(dest) - $right_boundary_width)
dest[i] = α*$ex
end
end
Expand All @@ -268,7 +268,7 @@ end
else
quote
Base.@_inline_meta
@turbo for i in (firstindex(dest) + $left_boundary_width):(lastindex(dest) - $right_boundary_width)
@turbo warn_check_args=false for i in (firstindex(dest) + $left_boundary_width):(lastindex(dest) - $right_boundary_width)
dest[i] = α*$ex
end
end
Expand Down Expand Up @@ -307,7 +307,7 @@ end
u = $ex_u
fi = firstindex(dest, 2) + left_boundary_width
la = lastindex(dest, 2) - right_boundary_width
@tturbo for i in fi:la
@tturbo warn_check_args=false for i in fi:la
for v in LoopVectorization.indices((dest, u), (1, 1))
dest[v, i] = β*dest[v, i] + α*$ex
end
Expand All @@ -333,7 +333,7 @@ end
u = $ex_u
fi = firstindex(dest, 2) + left_boundary_width
la = lastindex(dest, 2) - right_boundary_width
@turbo for i in fi:la
@turbo warn_check_args=false for i in fi:la
for v in LoopVectorization.indices((dest, u), (1, 1))
dest[v, i] = β*dest[v, i] + α*$ex
end
Expand Down Expand Up @@ -371,7 +371,7 @@ end
u = $ex_u
fi = firstindex(dest, 2) + left_boundary_width
la = lastindex(dest, 2) - right_boundary_width
@tturbo for i in fi:la
@tturbo warn_check_args=false for i in fi:la
for v in LoopVectorization.indices((dest, u), (1, 1))
dest[v, i] = α*$ex
end
Expand All @@ -397,7 +397,7 @@ end
u = $ex_u
fi = firstindex(dest, 2) + left_boundary_width
la = lastindex(dest, 2) - right_boundary_width
@turbo for i in fi:la
@turbo warn_check_args=false for i in fi:la
for v in LoopVectorization.indices((dest, u), (1, 1))
dest[v, i] = α*$ex
end
Expand Down
2 changes: 1 addition & 1 deletion src/SummationByPartsOperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ using Reexport: @reexport
using Requires: @require
using StaticArrays
using UnPack: @unpack
using Unrolled
using Unrolled: @unroll

@reexport using SciMLBase: DiscreteCallback, ODEProblem, SecondOrderODEProblem

Expand Down

2 comments on commit 0efb8f2

@ranocha
Copy link
Owner Author

@ranocha ranocha commented on 0efb8f2 Jul 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/63490

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.19 -m "<description of version>" 0efb8f2a197fc6c7ba00266c2e984d06dea1843d
git push origin v0.5.19

Please sign in to comment.