Mercurial > repos > public > sbplib_julia
diff src/Grids/equidistant_grid.jl @ 1473:869a40cda18c
Merge feature/grids/boundary_indicies
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 01 Dec 2023 11:48:04 +0100 |
parents | 37cf9f79caa4 |
children | 553111a15506 d7bc11053951 |
line wrap: on
line diff
--- a/src/Grids/equidistant_grid.jl Wed Nov 22 17:52:03 2023 +0100 +++ b/src/Grids/equidistant_grid.jl Fri Dec 01 11:48:04 2023 +0100 @@ -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)