Mercurial > repos > public > sbplib_julia
changeset 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 | f98893154e22 |
files | src/SbpOperators/stencil.jl test/SbpOperators/boundaryops/boundary_operator_test.jl |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/SbpOperators/stencil.jl Sun Feb 13 21:40:23 2022 +0100 +++ b/src/SbpOperators/stencil.jl Sun Feb 13 22:00:02 2022 +0100 @@ -2,7 +2,7 @@ export CenteredNestedStencil struct Stencil{T,N} - range::UnitRange + range::UnitRange{Int64} weights::NTuple{N,T} function Stencil(range::UnitRange,weights::NTuple{N,T}) where {T, N}
--- a/test/SbpOperators/boundaryops/boundary_operator_test.jl Sun Feb 13 21:40:23 2022 +0100 +++ b/test/SbpOperators/boundaryops/boundary_operator_test.jl Sun Feb 13 22:00:02 2022 +0100 @@ -9,7 +9,7 @@ import Sbplib.SbpOperators.boundary_operator @testset "BoundaryOperator" begin - closure_stencil = Stencil((0,2), (2.,1.,3.)) + closure_stencil = Stencil(2.,1.,3.; center = 1) g_1D = EquidistantGrid(11, 0.0, 1.0) g_2D = EquidistantGrid((11,15), (0.0, 0.0), (1.0,1.0))