Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/stencil.jl @ 1062:a76830879c63 feature/nested_stencils
Fix bugs from stencil refactor
(grafted from 18f63f1a0c442a648fca80a2101ab953f8b70649)
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 13 Feb 2022 22:00:02 +0100 |
parents | d1ddcdc098bf |
children | a7f898b1ce1e |
comparison
equal
deleted
inserted
replaced
1061:d1ddcdc098bf | 1062:a76830879c63 |
---|---|
1 export CenteredStencil | 1 export CenteredStencil |
2 export CenteredNestedStencil | 2 export CenteredNestedStencil |
3 | 3 |
4 struct Stencil{T,N} | 4 struct Stencil{T,N} |
5 range::UnitRange | 5 range::UnitRange{Int64} |
6 weights::NTuple{N,T} | 6 weights::NTuple{N,T} |
7 | 7 |
8 function Stencil(range::UnitRange,weights::NTuple{N,T}) where {T, N} | 8 function Stencil(range::UnitRange,weights::NTuple{N,T}) where {T, N} |
9 @assert length(range) == N | 9 @assert length(range) == N |
10 new{T,N}(range,weights) | 10 new{T,N}(range,weights) |