Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1586:d4a6f9effcdd feature/grids/manifolds
Remove mapped_grid(::Chart) and add equidistant_grid(::Chart)
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Fri, 26 Apr 2024 22:49:01 +0200 |
| parents | b9c7bab94241 |
| children | e213bd857f3f |
comparison
equal
deleted
inserted
replaced
| 1583:2a9ec1e2abad | 1586:d4a6f9effcdd |
|---|---|
| 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 """ |
