Mercurial > repos > public > sbplib_julia
comparison test/Grids/mapped_grid_test.jl @ 1745:2f7974367cd3 feature/grids/curvilinear
Add TBD
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 11 Sep 2024 14:11:11 +0200 |
parents | c38eead8be17 |
children | 03894fd7b132 035af82f559a |
comparison
equal
deleted
inserted
replaced
1744:c38eead8be17 | 1745:2f7974367cd3 |
---|---|
74 equidistant_grid((0,0), (1,1), sz1...), | 74 equidistant_grid((0,0), (1,1), sz1...), |
75 rand(SVector{2},sz1...), | 75 rand(SVector{2},sz1...), |
76 rand(SMatrix{2,2},sz2...), | 76 rand(SMatrix{2,2},sz2...), |
77 ) | 77 ) |
78 | 78 |
79 # TODO: Test that the element types agree | |
80 err_str = "The size of the jacobian must match the dimensions of the grid and coordinates" | 79 err_str = "The size of the jacobian must match the dimensions of the grid and coordinates" |
81 @test_throws ArgumentError(err_str) MappedGrid( | 80 @test_throws ArgumentError(err_str) MappedGrid( |
82 equidistant_grid((0,0), (1,1), 10, 11), | 81 equidistant_grid((0,0), (1,1), 10, 11), |
83 rand(SVector{3}, 10, 11), | 82 rand(SVector{3}, 10, 11), |
84 rand(SMatrix{3,4}, 10, 11), | 83 rand(SMatrix{3,4}, 10, 11), |