Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1604:b459082533f7 feature/boundary_conditions
Remove unnecessary white space changes to otherwise untouched files
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Sat, 08 Jun 2024 22:51:31 +0200 |
| parents | 3e7438e2a033 |
| children | 5f348cc5598e b02917bcd7d5 b0c019acb50b |
comparison
equal
deleted
inserted
replaced
| 1603:fca4a01d60c9 | 1604:b459082533f7 |
|---|---|
| 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 | |
| 49 | 50 |
| 50 boundary_identifiers(::EquidistantGrid) = (Lower(), Upper()) | 51 boundary_identifiers(::EquidistantGrid) = (Lower(), Upper()) |
| 51 boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin]) | 52 boundary_grid(g::EquidistantGrid, id::Lower) = ZeroDimGrid(g[begin]) |
| 52 boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end]) | 53 boundary_grid(g::EquidistantGrid, id::Upper) = ZeroDimGrid(g[end]) |
| 53 boundary_indices(g::EquidistantGrid, id::Lower) = (1,) | 54 boundary_indices(g::EquidistantGrid, id::Lower) = (1,) |
