Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/boundaryops/boundary_restriction_test.jl @ 1025:e74c41c4b60e feature/dissipation_operators
Merge refactor/sbpoperators/inflation
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 21 Mar 2022 15:12:59 +0100 |
parents | 1ba8a398af9c |
children | 6abbb2c6c3e4 |
comparison
equal
deleted
inserted
replaced
1021:ee5a641a8277 | 1025:e74c41c4b60e |
---|---|
16 @testset "1D" begin | 16 @testset "1D" begin |
17 e_l = boundary_restriction(g_1D,e_closure,CartesianBoundary{1,Lower}()) | 17 e_l = boundary_restriction(g_1D,e_closure,CartesianBoundary{1,Lower}()) |
18 @test e_l == boundary_restriction(g_1D,stencil_set,CartesianBoundary{1,Lower}()) | 18 @test e_l == boundary_restriction(g_1D,stencil_set,CartesianBoundary{1,Lower}()) |
19 @test e_l == BoundaryOperator(g_1D,Stencil{Float64}(e_closure),Lower()) | 19 @test e_l == BoundaryOperator(g_1D,Stencil{Float64}(e_closure),Lower()) |
20 @test e_l isa BoundaryOperator{T,Lower} where T | 20 @test e_l isa BoundaryOperator{T,Lower} where T |
21 @test e_l isa TensorMapping{T,0,1} where T | 21 @test e_l isa LazyTensor{T,0,1} where T |
22 | 22 |
23 e_r = boundary_restriction(g_1D,e_closure,CartesianBoundary{1,Upper}()) | 23 e_r = boundary_restriction(g_1D,e_closure,CartesianBoundary{1,Upper}()) |
24 @test e_r == boundary_restriction(g_1D,stencil_set,CartesianBoundary{1,Upper}()) | 24 @test e_r == boundary_restriction(g_1D,stencil_set,CartesianBoundary{1,Upper}()) |
25 @test e_r == BoundaryOperator(g_1D,Stencil{Float64}(e_closure),Upper()) | 25 @test e_r == BoundaryOperator(g_1D,Stencil{Float64}(e_closure),Upper()) |
26 @test e_r isa BoundaryOperator{T,Upper} where T | 26 @test e_r isa BoundaryOperator{T,Upper} where T |
27 @test e_r isa TensorMapping{T,0,1} where T | 27 @test e_r isa LazyTensor{T,0,1} where T |
28 end | 28 end |
29 | 29 |
30 @testset "2D" begin | 30 @testset "2D" begin |
31 e_w = boundary_restriction(g_2D,e_closure,CartesianBoundary{1,Upper}()) | 31 e_w = boundary_restriction(g_2D,e_closure,CartesianBoundary{1,Upper}()) |
32 @test e_w == boundary_restriction(g_2D,stencil_set,CartesianBoundary{1,Upper}()) | 32 @test e_w == boundary_restriction(g_2D,stencil_set,CartesianBoundary{1,Upper}()) |
33 @test e_w isa InflatedTensorMapping | 33 @test e_w isa InflatedLazyTensor |
34 @test e_w isa TensorMapping{T,1,2} where T | 34 @test e_w isa LazyTensor{T,1,2} where T |
35 end | 35 end |
36 end | 36 end |
37 | 37 |
38 @testset "Application" begin | 38 @testset "Application" begin |
39 @testset "1D" begin | 39 @testset "1D" begin |