Mercurial > repos > public > sbplib_julia
comparison test/Grids/manifolds_test.jl @ 1926:c02797f146c1 feature/grids/manifolds
Improve tests of CartesianAtlas
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 06 Feb 2025 15:49:25 +0100 |
parents | a2923694d5b7 |
children | fe18cdad2b27 |
comparison
equal
deleted
inserted
replaced
1925:297e3d74f697 | 1926:c02797f146c1 |
---|---|
31 @test size(CartesianAtlas([c c c; c c c])) == (2,3) | 31 @test size(CartesianAtlas([c c c; c c c])) == (2,3) |
32 @test size(CartesianAtlas([c c; c c; c c])) == (3,2) | 32 @test size(CartesianAtlas([c c; c c; c c])) == (3,2) |
33 end | 33 end |
34 | 34 |
35 @testset "connections" begin | 35 @testset "connections" begin |
36 a = CartesianAtlas(fill(c, 2,3)) | |
36 west = CartesianBoundary{1,LowerBoundary} | 37 west = CartesianBoundary{1,LowerBoundary} |
37 east = CartesianBoundary{1,UpperBoundary} | 38 east = CartesianBoundary{1,UpperBoundary} |
38 south = CartesianBoundary{2,LowerBoundary} | 39 south = CartesianBoundary{2,LowerBoundary} |
39 north = CartesianBoundary{2,UpperBoundary} | 40 north = CartesianBoundary{2,UpperBoundary} |
40 | 41 |
41 @test Set(connections(a)) == Set([ | 42 @test Set(connections(a)) == Set([ |
42 (MultiBlockBoundary{(1,1), east}(), MultiBlockBoundary{(2,1), west}()), | 43 (MultiBlockBoundary{(1,1), east}(), MultiBlockBoundary{(2,1), west}()), |
43 (MultiBlockBoundary{(1,2), east}(), MultiBlockBoundary{(2,2), west}()), | |
44 (MultiBlockBoundary{(1,1), north}(), MultiBlockBoundary{(1,2), south}()), | 44 (MultiBlockBoundary{(1,1), north}(), MultiBlockBoundary{(1,2), south}()), |
45 (MultiBlockBoundary{(2,1), north}(), MultiBlockBoundary{(2,2), south}()), | 45 (MultiBlockBoundary{(2,1), north}(), MultiBlockBoundary{(2,2), south}()), |
46 (MultiBlockBoundary{(1,2), east}(), MultiBlockBoundary{(2,2), west}()), | |
47 (MultiBlockBoundary{(1,2), north}(), MultiBlockBoundary{(1,3), south}()), | |
48 (MultiBlockBoundary{(2,2), north}(), MultiBlockBoundary{(2,3), south}()), | |
49 (MultiBlockBoundary{(1,3), east}(), MultiBlockBoundary{(2,3), west}()), | |
46 ]) | 50 ]) |
47 end | 51 end |
48 end | 52 end |
49 | 53 |
50 @testset "UnstructuredAtlas" begin | 54 @testset "UnstructuredAtlas" begin |