Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1873:3dd453015f7d
Merge refactor/grids/iterable_boundary_indices
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 27 Jan 2025 09:18:50 +0100 |
parents | 516eaabf1169 |
children | edee7d677efb f93ba5832146 |
comparison
equal
deleted
inserted
replaced
1856:0d8d56eca0c8 | 1873:3dd453015f7d |
---|---|
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 |