Mercurial > repos > public > sbplib_julia
comparison test/Grids/mapped_grid_test.jl @ 1581:f77c5309dd2b feature/grids/manifolds
Rename ConcreteChart to Chart and remove the abstarct chart type
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 25 Apr 2024 22:32:54 +0200 |
parents | d5aa72662161 |
children | d4a6f9effcdd |
comparison
equal
deleted
inserted
replaced
1580:fdee60ab8c4e | 1581:f77c5309dd2b |
---|---|
184 @test logicalgrid(mg) == lg | 184 @test logicalgrid(mg) == lg |
185 @test collect(mg) == map(x̄, lg) | 185 @test collect(mg) == map(x̄, lg) |
186 | 186 |
187 | 187 |
188 @testset "mapped_grid(::Chart)" begin | 188 @testset "mapped_grid(::Chart)" begin |
189 c = ConcreteChart(unitsquare()) do (ξ,η) | 189 c = Chart(unitsquare()) do (ξ,η) |
190 @SVector[2ξ, 3η] | 190 @SVector[2ξ, 3η] |
191 end | 191 end |
192 Grids.jacobian(c::typeof(c), ξ̄) = @SMatrix[2 0; 0 3] | 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 |