comparison test/Grids/curvilinear_grid_test.jl @ 1493:58b8da9c7e56 feature/grids/curvilinear

Implement boundary_indices
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 01 Dec 2023 12:00:07 +0100
parents 2e08f3444354
children 495f7f201d54
comparison
equal deleted inserted replaced
1492:d9d9ab18cdfc 1493:58b8da9c7e56
108 108
109 @testset "boundary_identifiers" begin 109 @testset "boundary_identifiers" begin
110 @test boundary_identifiers(cg) == boundary_identifiers(lg) 110 @test boundary_identifiers(cg) == boundary_identifiers(lg)
111 end 111 end
112 112
113 @testset "boundary_indices" begin
114 @test boundary_indices(cg, CartesianBoundary{1,Lower}()) == boundary_indices(lg,CartesianBoundary{1,Lower}())
115 @test boundary_indices(cg, CartesianBoundary{2,Lower}()) == boundary_indices(lg,CartesianBoundary{2,Lower}())
116 @test boundary_indices(cg, CartesianBoundary{1,Upper}()) == boundary_indices(lg,CartesianBoundary{1,Upper}())
117 end
118
113 @testset "boundary_grid" begin 119 @testset "boundary_grid" begin
114 @test_broken boundary_grid(cg, TensorGridBoundary{1, Lower}()) == 2. * boundary_grid(lg,TensorGridBoundary{1, Lower()}) 120 @test_broken boundary_grid(cg, TensorGridBoundary{1, Lower}()) == 2. * boundary_grid(lg,TensorGridBoundary{1, Lower()})
115 @test_broken boundary_grid(cg, TensorGridBoundary{1, Upper}()) == 2. * boundary_grid(lg,TensorGridBoundary{1, Upper()}) 121 @test_broken boundary_grid(cg, TensorGridBoundary{1, Upper}()) == 2. * boundary_grid(lg,TensorGridBoundary{1, Upper()})
116 @test_broken boundary_grid(cg, TensorGridBoundary{2, Lower}()) == 2. * boundary_grid(lg,TensorGridBoundary{2, Lower()}) 122 @test_broken boundary_grid(cg, TensorGridBoundary{2, Lower}()) == 2. * boundary_grid(lg,TensorGridBoundary{2, Lower()})
117 @test_broken boundary_grid(cg, TensorGridBoundary{2, Upper}()) == 2. * boundary_grid(lg,TensorGridBoundary{2, Upper()}) 123 @test_broken boundary_grid(cg, TensorGridBoundary{2, Upper}()) == 2. * boundary_grid(lg,TensorGridBoundary{2, Upper()})