Mercurial > repos > public > sbplib_julia
diff src/Grids/equidistant_grid.jl @ 1344:760a4a1ec4b7 refactor/grids
Add 2D tests for dissipation operators and fix bug
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 15 May 2023 22:37:55 +0200 |
parents | cca45af5e724 |
children | 08f06bfacd5c |
line wrap: on
line diff
--- a/src/Grids/equidistant_grid.jl Mon May 15 22:37:33 2023 +0200 +++ b/src/Grids/equidistant_grid.jl Mon May 15 22:37:55 2023 +0200 @@ -14,10 +14,9 @@ points::R end -Base.eachindex(g::EquidistantGrid) = eachindex(g.points) - # Indexing interface Base.getindex(g::EquidistantGrid, i) = g.points[i] +Base.eachindex(g::EquidistantGrid) = eachindex(g.points) Base.firstindex(g::EquidistantGrid) = firstindex(g.points) Base.lastindex(g::EquidistantGrid) = lastindex(g.points)