Mercurial > repos > public > sbplib_julia
comparison test/Grids/manifolds_test.jl @ 1930:e985eaa20ecf feature/grids/manifolds
Clean up tests a bit
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Feb 2025 09:17:28 +0100 |
parents | c5affb342e73 |
children | ac63820222f8 |
comparison
equal
deleted
inserted
replaced
1929:c5affb342e73 | 1930:e985eaa20ecf |
---|---|
28 c2 = Chart(x->2x, unitsquare()) | 28 c2 = Chart(x->2x, unitsquare()) |
29 @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas | 29 @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas |
30 | 30 |
31 | 31 |
32 @testset "connections" begin | 32 @testset "connections" begin |
33 a = CartesianAtlas(fill(c, 2,3)) | |
34 # 2D | 33 # 2D |
34 a = CartesianAtlas(fill(Chart(identity, unitsquare()), 2,3)) | |
35 west = CartesianBoundary{1,LowerBoundary} | 35 west = CartesianBoundary{1,LowerBoundary} |
36 east = CartesianBoundary{1,UpperBoundary} | 36 east = CartesianBoundary{1,UpperBoundary} |
37 south = CartesianBoundary{2,LowerBoundary} | 37 south = CartesianBoundary{2,LowerBoundary} |
38 north = CartesianBoundary{2,UpperBoundary} | 38 north = CartesianBoundary{2,UpperBoundary} |
39 | 39 |
46 (MultiBlockBoundary{(2,2), north}(), MultiBlockBoundary{(2,3), south}()), | 46 (MultiBlockBoundary{(2,2), north}(), MultiBlockBoundary{(2,3), south}()), |
47 (MultiBlockBoundary{(1,3), east}(), MultiBlockBoundary{(2,3), west}()), | 47 (MultiBlockBoundary{(1,3), east}(), MultiBlockBoundary{(2,3), west}()), |
48 ]) | 48 ]) |
49 | 49 |
50 # 3D | 50 # 3D |
51 a = CartesianAtlas(fill(c, 2,2,3)) | 51 a = CartesianAtlas(fill(Chart(identity, unitsquare()), 2,2,3)) |
52 bottom = CartesianBoundary{3, LowerBoundary} | 52 bottom = CartesianBoundary{3, LowerBoundary} |
53 top = CartesianBoundary{3, UpperBoundary} | 53 top = CartesianBoundary{3, UpperBoundary} |
54 @test Set(connections(a)) == Set([ | 54 @test Set(connections(a)) == Set([ |
55 (MultiBlockBoundary{(1,1,1), east}(), MultiBlockBoundary{(2,1,1), west}()), | 55 (MultiBlockBoundary{(1,1,1), east}(), MultiBlockBoundary{(2,1,1), west}()), |
56 (MultiBlockBoundary{(1,1,1), north}(), MultiBlockBoundary{(1,2,1), south}()), | 56 (MultiBlockBoundary{(1,1,1), north}(), MultiBlockBoundary{(1,2,1), south}()), |