comparison test/Grids/equidistant_grid_test.jl @ 1981:ea04a542a526 feature/grids/geometry_functions

Merge feature/grids/manifolds
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 26 Feb 2025 22:44:10 +0100
parents 624e19c20c19
children
comparison
equal deleted inserted replaced
1979:db3383581b9f 1981:ea04a542a526
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]