diff src/Grids/equidistant_grid.jl @ 1492:d9d9ab18cdfc feature/grids/curvilinear

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 01 Dec 2023 11:52:26 +0100
parents 37cf9f79caa4
children 553111a15506 d7bc11053951
line wrap: on
line diff
--- a/src/Grids/equidistant_grid.jl	Thu Nov 23 16:08:47 2023 +0100
+++ b/src/Grids/equidistant_grid.jl	Fri Dec 01 11:52:26 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)