Mercurial > repos > public > sbplib_julia
comparison src/Grids/manifolds.jl @ 1945:19efb9dacfff feature/grids/manifolds
Fix boundaries(::UnstructuredAtlas)
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Feb 2025 15:56:26 +0100 |
parents | 2a923e673cfc |
children | c63116e2ec8e |
comparison
equal
deleted
inserted
replaced
1944:2a923e673cfc | 1945:19efb9dacfff |
---|---|
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 bs = MultiBlockBoundary[] | 118 bs = MultiBlockBoundary[] |
119 | 119 |
120 for c ∈ charts(a) | 120 for (i,c) ∈ enumerate(charts(a)) |
121 for b ∈ boundaries(c) | 121 for b ∈ boundaries(c) |
122 if !any(cn->b∈cn, connections(a)) | 122 mbb = MultiBlockBoundary{i,typeof(b)}() |
123 push!(bs, b) | 123 |
124 if !any(cn->mbb∈cn, connections(a)) | |
125 push!(bs, mbb) | |
124 end | 126 end |
125 end | 127 end |
126 end | 128 end |
129 | |
130 return bs | |
127 end | 131 end |