Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/boundaryops/boundary_operator_test.jl @ 975:5be8e25c81b3 feature/tensormapping_application_promotion
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 15 Mar 2022 07:37:11 +0100 |
parents | 469ed954b493 775d5513da8f |
children | df562695b1b5 1ba8a398af9c |
comparison
equal
deleted
inserted
replaced
957:86889fc5b63f | 975:5be8e25c81b3 |
---|---|
30 e_w = boundary_operator(g_2D,closure_stencil,CartesianBoundary{1,Upper}()) | 30 e_w = boundary_operator(g_2D,closure_stencil,CartesianBoundary{1,Upper}()) |
31 @test e_w isa InflatedTensorMapping | 31 @test e_w isa InflatedTensorMapping |
32 @test e_w isa TensorMapping{T,1,2} where T | 32 @test e_w isa TensorMapping{T,1,2} where T |
33 end | 33 end |
34 end | 34 end |
35 | 35 op_l, op_r = boundary_operator.(Ref(g_1D), Ref(closure_stencil), boundary_identifiers(g_1D)) |
36 op_l = boundary_operator(g_1D, closure_stencil, CartesianBoundary{1,Lower}()) | 36 op_w, op_e, op_s, op_n = boundary_operator.(Ref(g_2D), Ref(closure_stencil), boundary_identifiers(g_2D)) |
37 op_r = boundary_operator(g_1D, closure_stencil, CartesianBoundary{1,Upper}()) | |
38 | |
39 op_w = boundary_operator(g_2D, closure_stencil, CartesianBoundary{1,Lower}()) | |
40 op_e = boundary_operator(g_2D, closure_stencil, CartesianBoundary{1,Upper}()) | |
41 op_s = boundary_operator(g_2D, closure_stencil, CartesianBoundary{2,Lower}()) | |
42 op_n = boundary_operator(g_2D, closure_stencil, CartesianBoundary{2,Upper}()) | |
43 | 37 |
44 @testset "Sizes" begin | 38 @testset "Sizes" begin |
45 @testset "1D" begin | 39 @testset "1D" begin |
46 @test domain_size(op_l) == (11,) | 40 @test domain_size(op_l) == (11,) |
47 @test domain_size(op_r) == (11,) | 41 @test domain_size(op_r) == (11,) |