Mercurial > repos > public > sbplib_julia
diff test/Grids/curvilinear_grid_test.jl @ 1434:af73340a8f0e feature/grids/curvilinear
Add todos
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 07 Sep 2023 09:03:07 +0200 |
parents | 64b60b42d367 |
children | 647c8b18b84f |
line wrap: on
line diff
--- a/test/Grids/curvilinear_grid_test.jl Mon Aug 28 09:38:15 2023 +0200 +++ b/test/Grids/curvilinear_grid_test.jl Thu Sep 07 09:03:07 2023 +0200 @@ -3,11 +3,17 @@ using StaticArrays @testset "CurvilinearGrid" begin - lg = equidistant_grid((11,11), (0,0), (1,1)) + lg = equidistant_grid((11,11), (0,0), (1,1)) # TODO: Change dims of the grid to be different x̄ = map(ξ̄ -> 2ξ̄, lg) J = map(ξ̄ -> @SArray(fill(2., 2, 2)), lg) cg = CurvilinearGrid(lg, x̄, J) + # TODO: Test constructor for different dims of range and domain for the coordinates + # TODO: Test constructor with different type than TensorGrid. a dummy type? + + @test_broken false # @test_throws ArgumentError("Sizes must match") CurvilinearGrid(lg, map(ξ̄ -> @SArray[ξ̄[1], ξ̄[2], -ξ̄[1]], lg), rand(SMatrix{2,3,Float64},15,11)) + + @test cg isa Grid{SVector{2, Float64},2} @test jacobian(cg) isa Array{<:AbstractMatrix}