Mercurial > repos > public > sbplib_julia
changeset 1429:e87f3465b770 feature/grids/curvilinear
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 25 Aug 2023 08:57:27 +0200 |
parents | a936b414283a (current diff) 69c9e6eae686 (diff) |
children | 9fc3c1af33e5 |
files | |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Grids/tensor_grid.jl Thu Aug 24 08:50:10 2023 +0200 +++ b/src/Grids/tensor_grid.jl Fri Aug 25 08:57:27 2023 +0200 @@ -112,7 +112,7 @@ ```julia gi, ldi = grid_and_local_dim_index(ndims.(g.grids), d) ``` -tells you which grid it belongs to (`gi`) and wich index it is at within that +tells you which grid it belongs to (`gi`) and which index it is at within that grid (`ldi`). """ function grid_and_local_dim_index(nds, d) @@ -123,5 +123,4 @@ else return (I, d-cumsum(nds)[I-1]) end - # TBD: Is there a cleaner way to compute this? end