Mercurial > repos > public > sbplib_julia
diff src/Grids/multiblockgrids.jl @ 2024:3fb33f00dab2 feature/grids/multiblock_grids
Implement getindex
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Wed, 12 Mar 2025 11:15:36 +0100 |
| parents | 50e7090f5a95 |
| children | d35a4cb170ff |
line wrap: on
line diff
--- a/src/Grids/multiblockgrids.jl Wed Mar 12 11:11:50 2025 +0100 +++ b/src/Grids/multiblockgrids.jl Wed Mar 12 11:15:36 2025 +0100 @@ -14,7 +14,7 @@ grids(g::MultiBlockGrid) = g.grids connections(g::MultiBlockGrid) = g.connections -# function Base.getindex end +Base.getindex(g::MultiBlockGrid, I...) = g.grids[I...] # function boundary_identifiers end # Requires function from manifolds? # function boundary_grid end # Should return a MultiBlockGrid with the right connections?
