Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1678:13a7a4ff49e3 feature/grids/manifolds
Merge feature/grids/curvilinear
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Sun, 30 Jun 2024 10:50:44 +0200 |
| parents | 8250cf5a3ce9 51f0c5f895fb |
| children | 4aa0973bffb0 |
comparison
equal
deleted
inserted
replaced
| 1650:8250cf5a3ce9 | 1678:13a7a4ff49e3 |
|---|---|
| 44 inverse_spacing(grid::EquidistantGrid) | 44 inverse_spacing(grid::EquidistantGrid) |
| 45 | 45 |
| 46 The reciprocal of the spacing between grid points. | 46 The reciprocal of the spacing between grid points. |
| 47 """ | 47 """ |
| 48 inverse_spacing(g::EquidistantGrid) = 1/step(g.points) | 48 inverse_spacing(g::EquidistantGrid) = 1/step(g.points) |
| 49 | |
| 50 min_spacing(g::EquidistantGrid) = spacing(g) | |
| 49 | 51 |
| 50 | 52 |
| 51 boundary_identifiers(::EquidistantGrid) = (Lower(), Upper()) | 53 boundary_identifiers(::EquidistantGrid) = (Lower(), Upper()) |
| 52 boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin]) | 54 boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin]) |
| 53 boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end]) | 55 boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end]) |
