Mercurial > repos > public > sbplib_julia
comparison src/Grids/curvilinear_grid.jl @ 1449:a0b1449dba4e feature/grids/curvilinear
Remove commented code
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 23 Nov 2023 10:14:48 +0100 |
parents | 1656228095b5 |
children | 647c8b18b84f |
comparison
equal
deleted
inserted
replaced
1448:0322c181a1cd | 1449:a0b1449dba4e |
---|---|
14 Base.eachindex(g::CurvilinearGrid) = eachindex(g.logicalgrid) | 14 Base.eachindex(g::CurvilinearGrid) = eachindex(g.logicalgrid) |
15 | 15 |
16 Base.firstindex(g::CurvilinearGrid, d) = firstindex(g.logicalgrid, d) | 16 Base.firstindex(g::CurvilinearGrid, d) = firstindex(g.logicalgrid, d) |
17 Base.lastindex(g::CurvilinearGrid, d) = lastindex(g.logicalgrid, d) | 17 Base.lastindex(g::CurvilinearGrid, d) = lastindex(g.logicalgrid, d) |
18 | 18 |
19 # function Base.getindex(g::TensorGrid, I...) | |
20 # szs = ndims.(g.grids) | |
21 | 19 |
22 # Is = LazyTensors.split_tuple(I, szs) | |
23 # ps = map((g,I)->SVector(g[I...]), g.grids, Is) | |
24 | |
25 # return vcat(ps...) | |
26 # end | |
27 | |
28 # function Base.eachindex(g::TensorGrid) | |
29 # szs = LazyTensors.concatenate_tuples(size.(g.grids)...) | |
30 # return CartesianIndices(szs) | |
31 # end | |
32 | 20 |
33 # # Iteration interface | 21 # # Iteration interface |
34 # Base.iterate(g::TensorGrid) = iterate(Iterators.product(g.grids...)) |> _iterate_combine_coords | 22 # Base.iterate(g::TensorGrid) = iterate(Iterators.product(g.grids...)) |> _iterate_combine_coords |
35 # Base.iterate(g::TensorGrid, state) = iterate(Iterators.product(g.grids...), state) |> _iterate_combine_coords | 23 # Base.iterate(g::TensorGrid, state) = iterate(Iterators.product(g.grids...), state) |> _iterate_combine_coords |
36 # _iterate_combine_coords(::Nothing) = nothing | 24 # _iterate_combine_coords(::Nothing) = nothing |