comparison src/Grids/equidistant_grid.jl @ 1587:aef3827ef522 feature/sbp_operators/laplace_curvilinear

Merge feature/grids/manifolds
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 26 Apr 2024 22:49:36 +0200
parents d4a6f9effcdd
children e213bd857f3f
comparison
equal deleted inserted replaced
1585:d359d0d7fb12 1587:aef3827ef522
128 end 128 end
129 129
130 130
131 equidistant_grid(hb::HyperBox, dims::Vararg{Int}) = equidistant_grid(hb.a, hb.b, dims...) 131 equidistant_grid(hb::HyperBox, dims::Vararg{Int}) = equidistant_grid(hb.a, hb.b, dims...)
132 132
133 function equidistant_grid(c::Chart, dims::Vararg{Int})
134 lg = equidistant_grid(parameterspace(c), dims...)
135 return MappedGrid(
136 lg,
137 map(c,lg),
138 map(ξ->jacobian(c, ξ), lg),
139 )
140 end
141
133 142
134 CartesianBoundary{D,BID} = TensorGridBoundary{D,BID} # TBD: What should we do about the naming of this boundary? 143 CartesianBoundary{D,BID} = TensorGridBoundary{D,BID} # TBD: What should we do about the naming of this boundary?
135 144
136 145
137 """ 146 """