Mercurial > repos > public > sbplib_julia
diff test/Grids/mapped_grid_test.jl @ 1574:aeb561754248 feature/grids/manifolds
Implement mapped_grid for a chart
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 25 Apr 2024 14:38:15 +0200 |
parents | c2620118f110 |
children | d5aa72662161 |
line wrap: on
line diff
--- a/test/Grids/mapped_grid_test.jl Thu Apr 25 14:37:59 2024 +0200 +++ b/test/Grids/mapped_grid_test.jl Thu Apr 25 14:38:15 2024 +0200 @@ -185,12 +185,13 @@ @test collect(mg) == map(x̄, lg) - @testset "mapped_grid(::Chart,J)" begin - c = ConcreteChart(unitsquare()) do (x,y) - @SVector[2x, 3y] + @testset "mapped_grid(::Chart)" begin + c = ConcreteChart(unitsquare()) do (ξ,η) + @SVector[2ξ, 3η] end + Grids.jacobian(c::typeof(c)) = x̄ -> @SMatrix[2 0; 0 3] ## TODO Maybe shouldn't return a function - @test mapped_grid(c, 5, 4) + @test mapped_grid(c, 5, 4) isa Grid end end