comparison src/Grids/tensor_grid.jl @ 1736:863385aae454 feature/grids/curvilinear

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 10 Sep 2024 21:59:10 +0200
parents ff7aeda1b292 471a948cd2b2
children 189e69d44056 871f3f1decea
comparison
equal deleted inserted replaced
1735:36986b75bf98 1736:863385aae454
115 function combine_coordinates(coords...) 115 function combine_coordinates(coords...)
116 return mapreduce(SVector, vcat, coords) 116 return mapreduce(SVector, vcat, coords)
117 end 117 end
118 118
119 """ 119 """
120 grid_and_local_dim_index(nds, d) 120 grid_and_local_dim_index(nds, d)
121 121
122 Given a tuple of number of dimensions `nds`, and a global dimension index `d`, 122 Given a tuple of number of dimensions `nds`, and a global dimension index `d`,
123 calculate which grid index, and local dimension, `d` corresponds to. 123 calculate which grid index, and local dimension, `d` corresponds to.
124 124
125 `nds` would come from broadcasting `ndims` on the grids tuple of a 125 `nds` would come from broadcasting `ndims` on the grids tuple of a