comparison test/Grids/equidistant_grid_test.jl @ 2003:524a52f190d7 feature/sbp_operators/laplace_curvilinear

Merge feature/grids/geometry_functions
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 29 Apr 2025 09:03:05 +0200
parents 624e19c20c19
children
comparison
equal deleted inserted replaced
1962:496b8d3903c6 2003:524a52f190d7
162 162
163 @test equidistant_grid(unitinterval(),3) == equidistant_grid(0,1,3) 163 @test equidistant_grid(unitinterval(),3) == equidistant_grid(0,1,3)
164 @test equidistant_grid(HyperBox((0,),(2,)),4) == equidistant_grid(@SVector[0], @SVector[2], 4) 164 @test equidistant_grid(HyperBox((0,),(2,)),4) == equidistant_grid(@SVector[0], @SVector[2], 4)
165 end 165 end
166 166
167
168 @testset "equidistant_grid(::Chart)" begin 167 @testset "equidistant_grid(::Chart)" begin
169 c = Chart(unitsquare()) do (ξ,η) 168 c = Chart(unitsquare()) do (ξ,η)
170 @SVector[2ξ, 3η] 169 @SVector[2ξ, 3η]
171 end 170 end
172 Grids.jacobian(c::typeof(c), ξ̄) = @SMatrix[2 0; 0 3] 171 Grids.jacobian(c::typeof(c), ξ̄) = @SMatrix[2 0; 0 3]