changeset 899:18f63f1a0c44 feature/variable_derivatives

Fix bugs from stencil refactor
author Jonatan Werpers <jonatan@werpers.com>
date Sun, 13 Feb 2022 22:00:02 +0100
parents cd6d71781137
children 00159066485b
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))