Mercurial > repos > public > sbplib_julia
comparison test/Grids/multiblockgrids_test.jl @ 2028:06f4b2ab43e8 feature/grids/multiblock_grids
Implement boundary_grid
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Fri, 11 Apr 2025 15:58:17 +0200 |
| parents | 0f27ddff6f92 |
| children |
comparison
equal
deleted
inserted
replaced
| 2027:0f27ddff6f92 | 2028:06f4b2ab43e8 |
|---|---|
| 118 @testset "boundary_identifiers" begin | 118 @testset "boundary_identifiers" begin |
| 119 @test_broken false | 119 @test_broken false |
| 120 end | 120 end |
| 121 | 121 |
| 122 @testset "boundary_grid" begin | 122 @testset "boundary_grid" begin |
| 123 @test_broken false | 123 g1 = MultiBlockGrid(multiblockgrid1d()...) |
| 124 @test boundary_grid(g1, MultiBlockBoundary{1,LowerBoundary}()) == ZeroDimGrid(0.) | |
| 125 @test boundary_grid(g1, MultiBlockBoundary{3,UpperBoundary}()) == ZeroDimGrid(3.) | |
| 126 | |
| 127 g2 = MultiBlockGrid(multiblockgrid2d()...) | |
| 128 b1lb = MultiBlockBoundary{1,CartesianBoundary{1,LowerBoundary}}() | |
| 129 @test boundary_grid(g2, b1lb) == TensorGrid(ZeroDimGrid(0.),equidistant_grid(0,1,5)) | |
| 130 | |
| 131 gm = MultiBlockGrid(multiblockgrid_matrix()...) | |
| 132 b21lb = MultiBlockBoundary{CartesianIndex(2,1),CartesianBoundary{2,LowerBoundary}}() | |
| 133 @test boundary_grid(gm, b21lb) == TensorGrid(equidistant_grid(1,2,11),ZeroDimGrid(0.)) | |
| 124 end | 134 end |
| 125 | 135 |
| 126 @testset "min_spacing" begin | 136 @testset "min_spacing" begin |
| 127 gs, cs = multiblockgrid2d() | 137 gs, cs = multiblockgrid2d() |
| 128 @test min_spacing(MultiBlockGrid(gs,cs)) isa Float64 | 138 @test min_spacing(MultiBlockGrid(gs,cs)) isa Float64 |
