changeset 2019:fb2dc185c197 feature/grids/multiblock_grids

Add stubs for functions and tests to be implemented
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 12 Mar 2025 10:40:28 +0100
parents a3ffc3202813
children 7f7207b9bd6c
files src/Grids/multiblockgrids.jl test/Grids/multiblockgrids_test.jl
diffstat 2 files changed, 50 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/Grids/multiblockgrids.jl	Wed Mar 12 09:34:00 2025 +0100
+++ b/src/Grids/multiblockgrids.jl	Wed Mar 12 10:40:28 2025 +0100
@@ -11,6 +11,20 @@
     MultiBlockGrid{T,D,typeof(grids), typeof(connections)}(grids,connections)
 end
 
+# function Base.getindex end
+# function boundary_identifiers end # Requires function from manifolds?
+# function boundary_grid end # Should return a MultiBlockGrid with the right connections?
+
+# function min_spacing end
+# function refine end
+# function coarsen end
+
+# function boundary_indices end # Need to figure out the grid functions first?
+# function eval_on end # Need to figure out the grid functions first?
+# function Base.map end # Need to figure out the grid functions first?
+
+# Plotting recipes
+
 
 """
     MultiBlockBoundary{N, BID} <: BoundaryIdentifier
--- a/test/Grids/multiblockgrids_test.jl	Wed Mar 12 09:34:00 2025 +0100
+++ b/test/Grids/multiblockgrids_test.jl	Wed Mar 12 10:40:28 2025 +0100
@@ -21,6 +21,42 @@
         # Dictionary
         @test MultiBlockGrid(Dict(:a=>g₁, :b=>g₂), [connection(:a, UpperBoundary(), :b, LowerBoundary())]) isa MultiBlockGrid{Float64,1}
     end
+
+    @testset "Base.getindex" begin
+        @test_broken false
+    end
+
+    @testset "boundary_identifiers" begin
+        @test_broken false
+    end
+
+    @testset "boundary_grid" begin
+        @test_broken false
+    end
+
+    @testset "min_spacing" begin
+        @test_broken false
+    end
+
+    @testset "refine" begin
+        @test_broken false
+    end
+
+    @testset "coarsen" begin
+        @test_broken false
+    end
+
+    @testset "boundary_indices" begin
+        @test_broken false
+    end
+
+    @testset "eval_on" begin
+        @test_broken false
+    end
+
+    @testset "Base.map" begin
+        @test_broken false
+    end
 end