rafaqz / Stencils.jl

Static Stencil mapping for Julia
Other
8 stars 2 forks source link

fix indices #49

Closed rafaqz closed 1 week ago

rafaqz commented 1 week ago

This PR allows calling indices(A::AbstractStencilArray, I) and getting back wrapped or reflected indices. indices(s::Stencil, I) still returns the unaltered values, because the stencil doesn't know about boundary conditions.

Closes #44

@NilsNiggemann This should fix your problem in #44, just note the change to calling indices on the array rather than the stencil.