Mercurial > repos > public > sbplib_julia
diff test/SbpOperators/boundaryops/boundary_operator_test.jl @ 926:47425442bbc5 feature/laplace_opset
Fix tests after refactoring
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 21 Feb 2022 23:33:29 +0100 |
parents | 45966c77cb20 |
children | 7168d28b03e3 |
line wrap: on
line diff
--- a/test/SbpOperators/boundaryops/boundary_operator_test.jl Mon Feb 21 13:13:37 2022 +0100 +++ b/test/SbpOperators/boundaryops/boundary_operator_test.jl Mon Feb 21 23:33:29 2022 +0100 @@ -32,14 +32,8 @@ @test e_w isa TensorMapping{T,1,2} where T end end - - op_l = boundary_operator(g_1D, closure_stencil, CartesianBoundary{1,Lower}()) - op_r = boundary_operator(g_1D, closure_stencil, CartesianBoundary{1,Upper}()) - - op_w = boundary_operator(g_2D, closure_stencil, CartesianBoundary{1,Lower}()) - op_e = boundary_operator(g_2D, closure_stencil, CartesianBoundary{1,Upper}()) - op_s = boundary_operator(g_2D, closure_stencil, CartesianBoundary{2,Lower}()) - op_n = boundary_operator(g_2D, closure_stencil, CartesianBoundary{2,Upper}()) + (op_l, op_r) = map(id -> boundary_operator(g_1D, closure_stencil, id), boundary_identifiers(g_1D)) + (op_w, op_e, op_s, op_n) = map(id -> boundary_operator(g_2D, closure_stencil, id), boundary_identifiers(g_2D)) @testset "Sizes" begin @testset "1D" begin