comparison test/Grids/EquidistantGrid_test.jl @ 1093:703eaa3e50c4 feature/variable_derivatives

Merge refactor/grids
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 27 Apr 2022 10:26:11 +0200
parents c4ea28d904f5
children
comparison
equal deleted inserted replaced
1091:e3b41d48b5aa 1093:703eaa3e50c4
50 @test g[1,3] == (-1.0,7.11) 50 @test g[1,3] == (-1.0,7.11)
51 @test g[5,1] == (0.0,0.0) 51 @test g[5,1] == (0.0,0.0)
52 @test g[5,3] == (0.0,7.11) 52 @test g[5,3] == (0.0,7.11)
53 53
54 @test g[4,2] == (-0.25,7.11/2) 54 @test g[4,2] == (-0.25,7.11/2)
55
56 @test g[CartesianIndex(1,3)] == (-1.0,7.11)
55 end 57 end
56 58
57 # restrict 59 # restrict
58 g = EquidistantGrid((5,3), (0.0,0.0), (2.0,1.0)) 60 g = EquidistantGrid((5,3), (0.0,0.0), (2.0,1.0))
59 @test restrict(g, 1) == EquidistantGrid(5,0.0,2.0) 61 @test restrict(g, 1) == EquidistantGrid(5,0.0,2.0)