comparison src/Grids/equidistant_grid.jl @ 1785:96f8cad255b4 feature/sbp_operators/laplace_curvilinear

Merge feature/grids/manifolds
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 16 Sep 2024 10:33:47 +0200
parents 2a8a2b52a112
children f2b32da29b73
comparison
equal deleted inserted replaced
1751:f3d7e2d7a43f 1785:96f8cad255b4
149 end 149 end
150 150
151 return EquidistantGrid(range(limit_lower, limit_upper, length=size)) # TBD: Should it use LinRange instead? 151 return EquidistantGrid(range(limit_lower, limit_upper, length=size)) # TBD: Should it use LinRange instead?
152 end 152 end
153 153
154 154 equidistant_grid(d::Interval, size::Int) = equidistant_grid(limits(d)..., size)
155 equidistant_grid(hb::HyperBox, dims::Vararg{Int}) = equidistant_grid(hb.a, hb.b, dims...) 155 equidistant_grid(hb::HyperBox, dims::Vararg{Int}) = equidistant_grid(limits(hb)..., dims...)
156 # TODO: One dimensional grids shouldn't have vector eltype right?, Change here or in HyperBox?
157 156
158 function equidistant_grid(c::Chart, dims::Vararg{Int}) 157 function equidistant_grid(c::Chart, dims::Vararg{Int})
159 lg = equidistant_grid(parameterspace(c), dims...) 158 lg = equidistant_grid(parameterspace(c), dims...)
160 return MappedGrid( 159 return MappedGrid(
161 lg, 160 lg,