comparison 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
comparison
equal deleted inserted replaced
1576:a7245343eb98 1577:d5aa72662161
187 187
188 @testset "mapped_grid(::Chart)" begin 188 @testset "mapped_grid(::Chart)" begin
189 c = ConcreteChart(unitsquare()) do (ξ,η) 189 c = ConcreteChart(unitsquare()) do (ξ,η)
190 @SVector[2ξ, 3η] 190 @SVector[2ξ, 3η]
191 end 191 end
192 Grids.jacobian(c::typeof(c)) = x̄ -> @SMatrix[2 0; 0 3] ## TODO Maybe shouldn't return a function 192 Grids.jacobian(c::typeof(c), ξ̄) = @SMatrix[2 0; 0 3]
193 193
194 @test mapped_grid(c, 5, 4) isa Grid 194 @test mapped_grid(c, 5, 4) isa Grid
195 end 195 end
196 196
197 end 197 end