Mercurial > repos > public > sbplib_julia
comparison test/Grids/equidistant_grid_test.jl @ 2008:df2cbcb7a2b1 default
Merge feature/grids/manifolds
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 01 May 2025 15:05:11 +0200 |
parents | 624e19c20c19 |
children |
comparison
equal
deleted
inserted
replaced
2005:52e5ab4a96d5 | 2008:df2cbcb7a2b1 |
---|---|
161 @test equidistant_grid(ps, 3,4) == equidistant_grid((0,0), (2,1), 3,4) | 161 @test equidistant_grid(ps, 3,4) == equidistant_grid((0,0), (2,1), 3,4) |
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 | |
167 @testset "equidistant_grid(::Chart)" begin | |
168 c = Chart(unitsquare()) do (ξ,η) | |
169 @SVector[2ξ, 3η] | |
170 end | |
171 Grids.jacobian(c::typeof(c), ξ̄) = @SMatrix[2 0; 0 3] | |
172 | |
173 @test equidistant_grid(c, 5, 4) isa Grid | |
174 end | |
166 end | 175 end |
167 | 176 |
168 | 177 |
169 @testset "change_length" begin | 178 @testset "change_length" begin |
170 @test Grids.change_length(0:20, 21) == 0:20 | 179 @test Grids.change_length(0:20, 21) == 0:20 |