Mercurial > repos > public > sbplib_julia
changeset 1460:20da24e7bc36 bugfix/sbp_operators/stencil_return_type
Add some TBD
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 27 Nov 2023 10:27:40 +0100 |
parents | c8cca833862d |
children | a020afa9d076 |
files | src/SbpOperators/stencil.jl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/SbpOperators/stencil.jl Mon Nov 27 08:53:44 2023 +0100 +++ b/src/SbpOperators/stencil.jl Mon Nov 27 10:27:40 2023 +0100 @@ -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) + return @inline 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) + return @inline sum(enumerate(s.weights)) do (k,w) #TBD: Which optimizations are needed here? w*v[i - @inbounds s.range[k]] end end