Mercurial > repos > public > sbplib_julia
comparison src/Grids/multiblockgrids.jl @ 2023:50e7090f5a95 feature/grids/multiblock_grids
Add accessor functions
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Wed, 12 Mar 2025 11:11:50 +0100 |
| parents | fb2dc185c197 |
| children | 3fb33f00dab2 |
comparison
equal
deleted
inserted
replaced
| 2022:7f04753ead30 | 2023:50e7090f5a95 |
|---|---|
| 8 T = eltype(valtype(grids)) | 8 T = eltype(valtype(grids)) |
| 9 D = ndims(valtype(grids)) | 9 D = ndims(valtype(grids)) |
| 10 | 10 |
| 11 MultiBlockGrid{T,D,typeof(grids), typeof(connections)}(grids,connections) | 11 MultiBlockGrid{T,D,typeof(grids), typeof(connections)}(grids,connections) |
| 12 end | 12 end |
| 13 | |
| 14 grids(g::MultiBlockGrid) = g.grids | |
| 15 connections(g::MultiBlockGrid) = g.connections | |
| 13 | 16 |
| 14 # function Base.getindex end | 17 # function Base.getindex end |
| 15 # function boundary_identifiers end # Requires function from manifolds? | 18 # function boundary_identifiers end # Requires function from manifolds? |
| 16 # function boundary_grid end # Should return a MultiBlockGrid with the right connections? | 19 # function boundary_grid end # Should return a MultiBlockGrid with the right connections? |
| 17 | 20 |
