Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/boundaryops/boundary_operator_test.jl @ 1153:f1bb1b6d85dd refactor/sbpoperators/inflation
Review: Suggest changes to test and removal of conveninece constructor
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 25 Oct 2022 10:33:27 +0200 |
parents | 6b24dc2d7b11 |
children | ae006e844870 |
comparison
equal
deleted
inserted
replaced
1151:56bc2c6a17fd | 1153:f1bb1b6d85dd |
---|---|
12 closure_stencil = Stencil(2.,1.,3.; center = 1) | 12 closure_stencil = Stencil(2.,1.,3.; center = 1) |
13 g_1D = EquidistantGrid(11, 0.0, 1.0) | 13 g_1D = EquidistantGrid(11, 0.0, 1.0) |
14 g_2D = EquidistantGrid((11,15), (0.0, 0.0), (1.0,1.0)) | 14 g_2D = EquidistantGrid((11,15), (0.0, 0.0), (1.0,1.0)) |
15 | 15 |
16 @testset "Constructors" begin | 16 @testset "Constructors" begin |
17 # Review: Remove the first line below in case we remove convenience constructor in BoundaryOperator | |
17 op_l = BoundaryOperator{Lower}(closure_stencil,size(g_1D)[1]) | 18 op_l = BoundaryOperator{Lower}(closure_stencil,size(g_1D)[1]) |
18 @test op_l == BoundaryOperator(g_1D,closure_stencil,Lower()) | 19 @test op_l == BoundaryOperator(g_1D,closure_stencil,Lower()) |
19 @test op_l isa LazyTensor{T,0,1} where T | 20 @test op_l isa LazyTensor{T,0,1} where T |
20 | 21 # Review: Remove the first line below in case we remove convenience constructor in BoundaryOperator |
21 op_r = BoundaryOperator{Upper}(closure_stencil,size(g_1D)[1]) | 22 op_r = BoundaryOperator{Upper}(closure_stencil,size(g_1D)[1]) |
22 @test op_r == BoundaryOperator(g_1D,closure_stencil,Upper()) | 23 @test op_r == BoundaryOperator(g_1D,closure_stencil,Upper()) |
23 @test op_r isa LazyTensor{T,0,1} where T | 24 @test op_r isa LazyTensor{T,0,1} where T |
24 end | 25 end |
25 | 26 |