From 0efb8f2a197fc6c7ba00266c2e984d06dea1843d Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Fri, 1 Jul 2022 15:27:06 +0200 Subject: [PATCH] warn check args (#140) * at-turbo: warn_check_args=false * be more explicit about using statements * set version to 0.5.19 --- Project.toml | 2 +- src/SBP_operators.jl | 16 ++++++++-------- src/SummationByPartsOperators.jl | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Project.toml b/Project.toml index e1292af4..2801ed5b 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/src/SBP_operators.jl b/src/SBP_operators.jl index 5e7c6e7f..79785363 100644 --- a/src/SBP_operators.jl +++ b/src/SBP_operators.jl @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/src/SummationByPartsOperators.jl b/src/SummationByPartsOperators.jl index d32b42a8..83c72721 100644 --- a/src/SummationByPartsOperators.jl +++ b/src/SummationByPartsOperators.jl @@ -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