Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/boundaryops/boundary_operator_test.jl @ 961:775d5513da8f feature/laplace_opset
Review: Fix boundary operator tests according to review comments
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 14 Mar 2022 09:41:23 +0100 |
parents | 7168d28b03e3 |
children | 5be8e25c81b3 f885e1de6dc4 |
comparison
equal
deleted
inserted
replaced
952:6a8d7fbf55fc | 961:775d5513da8f |
---|---|
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 op_l, op_r = map(id -> boundary_operator(g_1D, closure_stencil, id), boundary_identifiers(g_1D)) | 35 op_l, op_r = boundary_operator.(Ref(g_1D), Ref(closure_stencil), boundary_identifiers(g_1D)) |
36 op_w, op_e, op_s, op_n = map(id -> boundary_operator(g_2D, closure_stencil, id), boundary_identifiers(g_2D)) | 36 op_w, op_e, op_s, op_n = boundary_operator.(Ref(g_2D), Ref(closure_stencil), boundary_identifiers(g_2D)) |
37 | 37 |
38 @testset "Sizes" begin | 38 @testset "Sizes" begin |
39 @testset "1D" begin | 39 @testset "1D" begin |
40 @test domain_size(op_l) == (11,) | 40 @test domain_size(op_l) == (11,) |
41 @test domain_size(op_r) == (11,) | 41 @test domain_size(op_r) == (11,) |