Mercurial > repos > public > sbplib_julia
comparison test/Grids/mapped_grid_test.jl @ 1735:36986b75bf98 feature/grids/curvilinear
Add missing assignments
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 10 Sep 2024 21:35:55 +0200 |
parents | 519a8cb1439e |
children | 863385aae454 |
comparison
equal
deleted
inserted
replaced
1707:519a8cb1439e | 1735:36986b75bf98 |
---|---|
44 | 44 |
45 @test jacobian(mg) isa Array{<:AbstractMatrix} | 45 @test jacobian(mg) isa Array{<:AbstractMatrix} |
46 @test logicalgrid(mg) isa Grid | 46 @test logicalgrid(mg) isa Grid |
47 | 47 |
48 @testset "Indexing Interface" begin | 48 @testset "Indexing Interface" begin |
49 lg = equidistant_grid((0,0), (1,1), 11, 21) | |
50 x̄ = map(ξ̄ -> 2ξ̄, lg) | |
51 J = map(ξ̄ -> @SArray(fill(2., 2, 2)), lg) | |
49 mg = MappedGrid(lg, x̄, J) | 52 mg = MappedGrid(lg, x̄, J) |
50 @test mg[1,1] == [0.0, 0.0] | 53 @test mg[1,1] == [0.0, 0.0] |
51 @test mg[4,2] == [0.6, 0.1] | 54 @test mg[4,2] == [0.6, 0.1] |
52 @test mg[6,10] == [1., 0.9] | 55 @test mg[6,10] == [1., 0.9] |
53 | 56 |