diff 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
line wrap: on
line diff
--- a/src/Grids/multiblockgrids.jl	Wed Mar 12 11:07:40 2025 +0100
+++ b/src/Grids/multiblockgrids.jl	Wed Mar 12 11:11:50 2025 +0100
@@ -11,6 +11,9 @@
     MultiBlockGrid{T,D,typeof(grids), typeof(connections)}(grids,connections)
 end
 
+grids(g::MultiBlockGrid) = g.grids
+connections(g::MultiBlockGrid) = g.connections
+
 # function Base.getindex end
 # function boundary_identifiers end # Requires function from manifolds?
 # function boundary_grid end # Should return a MultiBlockGrid with the right connections?