Mercurial > repos > public > sbplib_julia
diff src/Grids/equidistant_grid.jl @ 1531:9da4ab4fb85e bugfix/sbp_operators/stencil_return_type
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 11 Apr 2024 22:50:42 +0200 |
parents | d7bc11053951 |
children | 4df668d00d03 43aaf710463e |
line wrap: on
line diff
--- a/src/Grids/equidistant_grid.jl Sun Nov 26 22:30:44 2023 +0100 +++ b/src/Grids/equidistant_grid.jl Thu Apr 11 22:50:42 2024 +0200 @@ -51,7 +51,8 @@ boundary_identifiers(::EquidistantGrid) = (Lower(), Upper()) boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin]) boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end]) - +boundary_indices(g::EquidistantGrid, id::Lower) = (1,) +boundary_indices(g::EquidistantGrid, id::Upper) = (length(g),) """ refine(g::EquidistantGrid, r::Int) @@ -102,8 +103,8 @@ Note: If `limit_lower` and `limit_upper` are integers and `size` would allow a completely integer grid, `equidistant_grid` will still return a floating point -grid. This simlifies the implementation and avoids certain surprise -behaviours. +grid. This simplifies the implementation and avoids certain surprise +behaviors. """ function equidistant_grid(size::Dims, limit_lower, limit_upper) gs = map(equidistant_grid, size, limit_lower, limit_upper)