comparison test/Grids/manifolds_test.jl @ 1919:71d218593cac feature/grids/manifolds

Add implementation for size to CartesianAtlas
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 05 Feb 2025 09:05:46 +0100
parents b1560da986f3
children ae83c91286a2
comparison
equal deleted inserted replaced
1918:b1560da986f3 1919:71d218593cac
19 19
20 a = CartesianAtlas([c c; c c]) 20 a = CartesianAtlas([c c; c c])
21 @test a isa Atlas 21 @test a isa Atlas
22 @test charts(a) == [c c; c c] 22 @test charts(a) == [c c; c c]
23 23
24
25 @testset "size" begin
26 @test size(CartesianAtlas([c c; c c])) == (2,2)
27 @test size(CartesianAtlas([c c c; c c c])) == (2,3)
28 @test size(CartesianAtlas([c c; c c; c c])) == (3,2)
29 end
30
24 west = CartesianBoundary{1,LowerBoundary} 31 west = CartesianBoundary{1,LowerBoundary}
25 east = CartesianBoundary{1,UpperBoundary} 32 east = CartesianBoundary{1,UpperBoundary}
26 south = CartesianBoundary{2,LowerBoundary} 33 south = CartesianBoundary{2,LowerBoundary}
27 north = CartesianBoundary{2,UpperBoundary} 34 north = CartesianBoundary{2,UpperBoundary}
28 35