Mercurial > repos > public > sbplib_julia
changeset 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 |
files | src/Grids/manifolds.jl test/Grids/manifolds_test.jl |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Grids/manifolds.jl Fri Feb 07 15:56:04 2025 +0100 +++ b/src/Grids/manifolds.jl Fri Feb 07 15:56:26 2025 +0100 @@ -117,11 +117,15 @@ function boundaries(a::UnstructuredAtlas) bs = MultiBlockBoundary[] - for c ∈ charts(a) + for (i,c) ∈ enumerate(charts(a)) for b ∈ boundaries(c) - if !any(cn->b∈cn, connections(a)) - push!(bs, b) + mbb = MultiBlockBoundary{i,typeof(b)}() + + if !any(cn->mbb∈cn, connections(a)) + push!(bs, mbb) end end end + + return bs end
--- a/test/Grids/manifolds_test.jl Fri Feb 07 15:56:04 2025 +0100 +++ b/test/Grids/manifolds_test.jl Fri Feb 07 15:56:26 2025 +0100 @@ -195,7 +195,7 @@ a = UnstructuredAtlas([c, c, c], cn) - @test_broken Set(boundaries(a)) == Set([ + @test Set(boundaries(a)) == Set([ MultiBlockBoundary{1, west}(), MultiBlockBoundary{1, south}(), MultiBlockBoundary{2, south}(),