diff src/Grids/manifolds.jl @ 1941:1e3089197397 feature/grids/manifolds

Add tests for boundaries(::UnstructuredAtlas). Attempt implementation but more Charts functionality is needed
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 07 Feb 2025 13:59:13 +0100
parents 1bd0e23499da
children b8395f69ad80
line wrap: on
line diff
--- a/src/Grids/manifolds.jl	Fri Feb 07 13:58:29 2025 +0100
+++ b/src/Grids/manifolds.jl	Fri Feb 07 13:59:13 2025 +0100
@@ -115,5 +115,13 @@
 connections(a::UnstructuredAtlas) = a.connections
 
 function boundaries(a::UnstructuredAtlas)
-    return nothing
+    bs = MultiBlockBoundary[]
+
+    for c ∈ charts(a)
+        for b ∈ boundaries(c)
+            if !any(cn->b∈cn, connections(a))
+                push!(bs, b)
+            end
+        end
+    end
 end