diff src/SbpOperators/stencil.jl @ 1544:7cfa729e256d bugfix/sbp_operators/stencil_return_type

Remove ineffective @inline
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 12 Apr 2024 10:11:52 +0200
parents 20da24e7bc36
children 8b9cdadb845a
line wrap: on
line diff
--- a/src/SbpOperators/stencil.jl	Thu Apr 11 23:50:09 2024 +0200
+++ b/src/SbpOperators/stencil.jl	Fri Apr 12 10:11:52 2024 +0200
@@ -69,13 +69,13 @@
 end
 
 Base.@propagate_inbounds @inline function apply_stencil(s::Stencil, v::AbstractVector, i::Int)
-    return @inline sum(enumerate(s.weights)) do (k,w) #TBD: Which optimizations are needed here?
+    return sum(enumerate(s.weights)) do (k,w) #TBD: Which optimizations are needed here?
         w*v[i + @inbounds s.range[k]]
     end
 end
 
 Base.@propagate_inbounds @inline function apply_stencil_backwards(s::Stencil, v::AbstractVector, i::Int)
-    return @inline sum(enumerate(s.weights)) do (k,w) #TBD: Which optimizations are needed here?
+    return sum(enumerate(s.weights)) do (k,w) #TBD: Which optimizations are needed here?
         w*v[i - @inbounds s.range[k]]
     end
 end