Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1677:51f0c5f895fb feature/grids/curvilinear
Merge default
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Sun, 30 Jun 2024 10:43:02 +0200 |
| parents | b02917bcd7d5 5f348cc5598e |
| children | 13a7a4ff49e3 3ac94e8f28b3 |
comparison
equal
deleted
inserted
replaced
| 1659:3bbcd496e021 | 1677:51f0c5f895fb |
|---|---|
| 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]) |
