Mercurial > repos > public > sbplib_julia
diff src/Grids/multiblockgrids.jl @ 2018:a3ffc3202813 feature/grids/multiblock_grids
Start implementation of MultiBlockGrid
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Wed, 12 Mar 2025 09:34:00 +0100 |
| parents | ea2a15454cf2 |
| children | fb2dc185c197 |
line wrap: on
line diff
--- a/src/Grids/multiblockgrids.jl Wed Mar 12 09:32:32 2025 +0100 +++ b/src/Grids/multiblockgrids.jl Wed Mar 12 09:34:00 2025 +0100 @@ -1,3 +1,17 @@ + +struct MultiBlockGrid{T,D,GT, CT} <: Grid{T,D} + grids::GT + connections::CT +end + +function MultiBlockGrid(grids, connections) + T = eltype(valtype(grids)) + D = ndims(valtype(grids)) + + MultiBlockGrid{T,D,typeof(grids), typeof(connections)}(grids,connections) +end + + """ MultiBlockBoundary{N, BID} <: BoundaryIdentifier
