comparison src/Grids/equidistant_grid.jl @ 1526:4df668d00d03 feature/grids/curvilinear

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 09 Apr 2024 07:58:27 +0200
parents 553111a15506 d7bc11053951
children 9113f437431d
comparison
equal deleted inserted replaced
1506:535f32316637 1526:4df668d00d03
101 The number of equispaced points in each coordinate direction are given 101 The number of equispaced points in each coordinate direction are given
102 by the tuple `size`. 102 by the tuple `size`.
103 103
104 Note: If `limit_lower` and `limit_upper` are integers and `size` would allow a 104 Note: If `limit_lower` and `limit_upper` are integers and `size` would allow a
105 completely integer grid, `equidistant_grid` will still return a floating point 105 completely integer grid, `equidistant_grid` will still return a floating point
106 grid. This simlifies the implementation and avoids certain surprise 106 grid. This simplifies the implementation and avoids certain surprise
107 behaviours. 107 behaviors.
108 """ 108 """
109 # TODO: Change signature to `equidistant_grid(limit_lower,limit_upper, size...) 109 # TODO: Change signature to `equidistant_grid(limit_lower,limit_upper, size...)
110 function equidistant_grid(size::Dims, limit_lower, limit_upper) 110 function equidistant_grid(size::Dims, limit_lower, limit_upper)
111 gs = map(equidistant_grid, size, limit_lower, limit_upper) 111 gs = map(equidistant_grid, size, limit_lower, limit_upper)
112 return TensorGrid(gs...) 112 return TensorGrid(gs...)