comparison test/Grids/mapped_grid_test.jl @ 1817:d91a9f47380f feature/jet_aqua

Resolve ambiguity of mapped_grid and improve its signature
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 14 Oct 2024 23:28:12 +0200
parents 43c0bfc13de3
children 81559cb7b11c f93ba5832146
comparison
equal deleted inserted replaced
1816:77f1b027d134 1817:d91a9f47380f
280 280
281 lg = equidistant_grid((0,0), (1,1), 10, 11) 281 lg = equidistant_grid((0,0), (1,1), 10, 11)
282 @test logical_grid(mg) == lg 282 @test logical_grid(mg) == lg
283 @test collect(mg) == map(x̄, lg) 283 @test collect(mg) == map(x̄, lg)
284 284
285 @test mapped_grid(lg, x̄, J) == mg 285 @test mapped_grid(x̄, J, lg) == mg
286 end 286 end
287 287
288 @testset "metric_tensor" begin 288 @testset "metric_tensor" begin
289 x̄((ξ, η)) = @SVector[ξ*η, ξ + η^2] 289 x̄((ξ, η)) = @SVector[ξ*η, ξ + η^2]
290 J((ξ, η)) = @SMatrix[ 290 J((ξ, η)) = @SMatrix[