Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/boundaryops/boundary_operator_test.jl @ 1100:157a78959e5d refactor/sbpoperators/inflation
Bring up to date
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 10 May 2022 20:34:20 +0200 |
parents | 05a25a5063bb a76830879c63 |
children | 0ba4609605d4 |
comparison
equal
deleted
inserted
replaced
1099:05a25a5063bb | 1100:157a78959e5d |
---|---|
8 import Sbplib.SbpOperators.BoundaryOperator | 8 import Sbplib.SbpOperators.BoundaryOperator |
9 | 9 |
10 # TODO: What should happen to all the commented tests? Deleted? Replicated for user code? | 10 # TODO: What should happen to all the commented tests? Deleted? Replicated for user code? |
11 | 11 |
12 @testset "BoundaryOperator" begin | 12 @testset "BoundaryOperator" begin |
13 closure_stencil = Stencil((0,2), (2.,1.,3.)) | 13 closure_stencil = Stencil(2.,1.,3.; center = 1) |
14 g_1D = EquidistantGrid(11, 0.0, 1.0) | 14 g_1D = EquidistantGrid(11, 0.0, 1.0) |
15 g_2D = EquidistantGrid((11,15), (0.0, 0.0), (1.0,1.0)) | 15 g_2D = EquidistantGrid((11,15), (0.0, 0.0), (1.0,1.0)) |
16 | 16 |
17 @testset "Constructors" begin | 17 @testset "Constructors" begin |
18 @testset "1D" begin # TODO: Remove these testsets | 18 @testset "1D" begin # TODO: Remove these testsets |
25 @test op_r isa LazyTensor{T,0,1} where T | 25 @test op_r isa LazyTensor{T,0,1} where T |
26 end | 26 end |
27 | 27 |
28 # @testset "2D" begin | 28 # @testset "2D" begin |
29 # e_w = boundary_operator(g_2D,closure_stencil,CartesianBoundary{1,Upper}()) | 29 # e_w = boundary_operator(g_2D,closure_stencil,CartesianBoundary{1,Upper}()) |
30 # @test e_w isa InflatedLazyTensor | 30 # @test e_w isa InflatedTensor |
31 # @test e_w isa LazyTensor{T,1,2} where T | 31 # @test e_w isa LazyTensor{T,1,2} where T |
32 # end | 32 # end |
33 end | 33 end |
34 | 34 |
35 op_l = BoundaryOperator(g_1D, closure_stencil, Lower()) | 35 op_l = BoundaryOperator(g_1D, closure_stencil, Lower()) |