Mercurial > repos > public > sbplib_julia
comparison src/Grids/tensor_grid.jl @ 1726:471a948cd2b2 rename_module
Rename project from Sbplib to Diffinitive
author | Vidar Stiernström <vidar.stiernstrom@gmail.com> |
---|---|
date | Sat, 07 Sep 2024 12:11:53 -0700 |
parents | 5f348cc5598e |
children | 863385aae454 87ebdd6eed95 |
comparison
equal
deleted
inserted
replaced
1725:8317252e4535 | 1726:471a948cd2b2 |
---|---|
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 |