Mercurial > repos > public > sbplib_julia
comparison test/testSbpOperators.jl @ 570:a8fe91861116 feature/boundary_ops
Change order of type parameters R and N to allow skipping N
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 01 Dec 2020 15:36:35 +0100 |
parents | 34d9e10f0001 |
children | 64f1b269e9fc |
comparison
equal
deleted
inserted
replaced
569:2a7a258eaaa6 | 570:a8fe91861116 |
---|---|
178 g_1D = EquidistantGrid(11, 0.0, 1.0) | 178 g_1D = EquidistantGrid(11, 0.0, 1.0) |
179 g_2D = EquidistantGrid((11,15), (0.0, 0.0), (1.0,1.0)) | 179 g_2D = EquidistantGrid((11,15), (0.0, 0.0), (1.0,1.0)) |
180 | 180 |
181 @testset "Constructors" begin | 181 @testset "Constructors" begin |
182 # 1D | 182 # 1D |
183 e_l = BoundaryRestriction{Float64,4,Lower}(op.eClosure,size(g_1D)) | 183 e_l = BoundaryRestriction{Float64,Lower,4}(op.eClosure,size(g_1D)[1]) |
184 @test e_l == BoundaryRestriction(g_1D,op.eClosure,Lower()) | 184 @test e_l == BoundaryRestriction(g_1D,op.eClosure,Lower()) |
185 @test e_l == boundary_restriction(g_1D,op.eClosure,CartesianBoundary{1,Lower}()) | 185 @test e_l == boundary_restriction(g_1D,op.eClosure,CartesianBoundary{1,Lower}()) |
186 @test e_l isa TensorMapping{T,0,1} where T | 186 @test e_l isa TensorMapping{T,0,1} where T |
187 | 187 |
188 e_r = BoundaryRestriction{Float64,4,Upper}(op.eClosure,size(g_1D)) | 188 e_r = BoundaryRestriction{Float64,Upper,4}(op.eClosure,size(g_1D)[1]) |
189 @test e_r == BoundaryRestriction(g_1D,op.eClosure,Upper()) | 189 @test e_r == BoundaryRestriction(g_1D,op.eClosure,Upper()) |
190 @test e_r == boundary_restriction(g_1D,op.eClosure,CartesianBoundary{1,Upper}()) | 190 @test e_r == boundary_restriction(g_1D,op.eClosure,CartesianBoundary{1,Upper}()) |
191 @test e_r isa TensorMapping{T,0,1} where T | 191 @test e_r isa TensorMapping{T,0,1} where T |
192 | 192 |
193 # 2D | 193 # 2D |