Mercurial > repos > public > sbplib_julia
diff test/Grids/equidistant_grid_test.jl @ 1586:d4a6f9effcdd feature/grids/manifolds
Remove mapped_grid(::Chart) and add equidistant_grid(::Chart)
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 26 Apr 2024 22:49:01 +0200 |
parents | c3425b4302b8 |
children | 8250cf5a3ce9 |
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl Fri Apr 26 22:19:30 2024 +0200 +++ b/test/Grids/equidistant_grid_test.jl Fri Apr 26 22:49:01 2024 +0200 @@ -151,6 +151,16 @@ @test equidistant_grid(ps, 3,4) == equidistant_grid((0,0), (2,1), 3,4) end + + + @testset "equidistant_grid(::Chart)" begin + c = Chart(unitsquare()) do (ξ,η) + @SVector[2ξ, 3η] + end + Grids.jacobian(c::typeof(c), ξ̄) = @SMatrix[2 0; 0 3] + + @test equidistant_grid(c, 5, 4) isa Grid + end end