changeset 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
files test/Grids/mapped_grid_test.jl
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/Grids/mapped_grid_test.jl	Wed Sep 04 15:53:19 2024 +0200
+++ b/test/Grids/mapped_grid_test.jl	Tue Sep 10 21:35:55 2024 +0200
@@ -46,6 +46,9 @@
     @test logicalgrid(mg) isa Grid
 
     @testset "Indexing Interface" begin
+        lg = equidistant_grid((0,0), (1,1), 11, 21)
+        x̄ = map(ξ̄ -> 2ξ̄, lg)
+        J = map(ξ̄ -> @SArray(fill(2., 2, 2)), lg)
         mg = MappedGrid(lg, x̄, J)
         @test mg[1,1] == [0.0, 0.0]
         @test mg[4,2] == [0.6, 0.1]