diff test/Grids/mapped_grid_test.jl @ 1577:d5aa72662161 feature/grids/manifolds

Change to expect the jacobian of a chart to take x as an argument
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 25 Apr 2024 21:53:06 +0200
parents aeb561754248
children f77c5309dd2b
line wrap: on
line diff
--- a/test/Grids/mapped_grid_test.jl	Thu Apr 25 21:52:22 2024 +0200
+++ b/test/Grids/mapped_grid_test.jl	Thu Apr 25 21:53:06 2024 +0200
@@ -189,7 +189,7 @@
         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
+        Grids.jacobian(c::typeof(c), ξ̄) = @SMatrix[2 0; 0 3]
 
         @test mapped_grid(c, 5, 4) isa Grid
     end