Mercurial > repos > public > sbplib_julia
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1940:1bd0e23499da | 1941:1e3089197397 |
|---|---|
| 113 | 113 |
| 114 charts(a::UnstructuredAtlas) = a.charts | 114 charts(a::UnstructuredAtlas) = a.charts |
| 115 connections(a::UnstructuredAtlas) = a.connections | 115 connections(a::UnstructuredAtlas) = a.connections |
| 116 | 116 |
| 117 function boundaries(a::UnstructuredAtlas) | 117 function boundaries(a::UnstructuredAtlas) |
| 118 return nothing | 118 bs = MultiBlockBoundary[] |
| 119 | |
| 120 for c ∈ charts(a) | |
| 121 for b ∈ boundaries(c) | |
| 122 if !any(cn->b∈cn, connections(a)) | |
| 123 push!(bs, b) | |
| 124 end | |
| 125 end | |
| 126 end | |
| 119 end | 127 end |
