Mercurial > repos > public > sbplib_julia
comparison src/Grids/mapped_grid.jl @ 1645:64452a678e7a feature/grids/curvilinear
Add todo
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2024 11:09:25 +0200 |
parents | 063a2bfb03da |
children | 8250cf5a3ce9 3bbcd496e021 |
comparison
equal
deleted
inserted
replaced
1570:063a2bfb03da | 1645:64452a678e7a |
---|---|
12 Base.getindex(g::MappedGrid, I::Vararg{Int}) = g.physicalcoordinates[I...] | 12 Base.getindex(g::MappedGrid, I::Vararg{Int}) = g.physicalcoordinates[I...] |
13 Base.eachindex(g::MappedGrid) = eachindex(g.logicalgrid) | 13 Base.eachindex(g::MappedGrid) = eachindex(g.logicalgrid) |
14 | 14 |
15 Base.firstindex(g::MappedGrid, d) = firstindex(g.logicalgrid, d) | 15 Base.firstindex(g::MappedGrid, d) = firstindex(g.logicalgrid, d) |
16 Base.lastindex(g::MappedGrid, d) = lastindex(g.logicalgrid, d) | 16 Base.lastindex(g::MappedGrid, d) = lastindex(g.logicalgrid, d) |
17 # TODO: axes(...)? | |
17 | 18 |
18 # Iteration interface | 19 # Iteration interface |
19 | 20 |
20 Base.iterate(g::MappedGrid) = iterate(g.physicalcoordinates) | 21 Base.iterate(g::MappedGrid) = iterate(g.physicalcoordinates) |
21 Base.iterate(g::MappedGrid, state) = iterate(g.physicalcoordinates, state) | 22 Base.iterate(g::MappedGrid, state) = iterate(g.physicalcoordinates, state) |