comparison src/Grids/equidistant_grid.jl @ 1901:edee7d677efb feature/grids/manifolds

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Sat, 01 Feb 2025 21:38:49 +0100
parents 81559cb7b11c 516eaabf1169
children 04c251bccbd4
comparison
equal deleted inserted replaced
1870:27534b471b6a 1901:edee7d677efb
69 69
70 70
71 boundary_identifiers(::EquidistantGrid) = (LowerBoundary(), UpperBoundary()) 71 boundary_identifiers(::EquidistantGrid) = (LowerBoundary(), UpperBoundary())
72 boundary_grid(g::EquidistantGrid, id::LowerBoundary) = ZeroDimGrid(g[begin]) 72 boundary_grid(g::EquidistantGrid, id::LowerBoundary) = ZeroDimGrid(g[begin])
73 boundary_grid(g::EquidistantGrid, id::UpperBoundary) = ZeroDimGrid(g[end]) 73 boundary_grid(g::EquidistantGrid, id::UpperBoundary) = ZeroDimGrid(g[end])
74 boundary_indices(g::EquidistantGrid, id::LowerBoundary) = (firstindex(g),) 74 boundary_indices(g::EquidistantGrid, id::LowerBoundary) = firstindex(g)
75 boundary_indices(g::EquidistantGrid, id::UpperBoundary) = (lastindex(g),) 75 boundary_indices(g::EquidistantGrid, id::UpperBoundary) = lastindex(g)
76 76
77 """ 77 """
78 refine(g::EquidistantGrid, r::Int) 78 refine(g::EquidistantGrid, r::Int)
79 79
80 The grid where `g` is refined by the factor `r`. The factor is applied to the number of 80 The grid where `g` is refined by the factor `r`. The factor is applied to the number of