Skip to content

Commit 9cf35c2

Browse files
committed
Bugfix
1 parent a2941bb commit 9cf35c2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/Geometry.jl

+7-3
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ function Geometry.InterfaceTriangulation(
581581
end
582582

583583
function Geometry.InterfaceTriangulation(a::DistributedTriangulation,b::DistributedTriangulation)
584-
trians = map(InterfaceTriangulation,a.trians,b.trians)
585584
@assert a.model === b.model
585+
trians = map(InterfaceTriangulation,a.trians,b.trians)
586586
DistributedTriangulation(trians,a.model)
587587
end
588588

@@ -642,15 +642,19 @@ function remove_ghost_cells(trian::Triangulation,gids)
642642
remove_ghost_cells(glue,trian,gids)
643643
end
644644

645-
function remove_ghost_cells(trian::Union{SkeletonTriangulation,BoundaryTriangulation},gids)
645+
function remove_ghost_cells(
646+
trian::Union{SkeletonTriangulation,BoundaryTriangulation,Geometry.CompositeTriangulation},
647+
gids
648+
)
646649
model = get_background_model(trian)
647650
Dm = num_cell_dims(model)
648651
glue = get_glue(trian,Val(Dm))
649652
remove_ghost_cells(glue,trian,gids)
650653
end
651654

652655
function remove_ghost_cells(
653-
trian::AdaptedTriangulation{Dc,Dp,<:Union{SkeletonTriangulation,BoundaryTriangulation}},gids) where {Dc,Dp}
656+
trian::AdaptedTriangulation{Dc,Dp,<:Union{SkeletonTriangulation,BoundaryTriangulation}},gids
657+
) where {Dc,Dp}
654658
remove_ghost_cells(trian.trian,gids)
655659
end
656660

test/GeometryTests.jl

-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ function main(distribute,parts)
9494
end
9595
cell_gids = get_cell_gids(model)
9696
consistent!(PVector(cell_to_entity,partition(cell_gids))) |> wait # Make tags consistent
97-
#vcache = PartitionedArrays.p_vector_cache(cell_to_entity,partition(cell_gids))
98-
#assemble!((a,b)->b, cell_to_entity, map(reverse,vcache) ) |> wait # Make tags consistent
9997

10098
Ωs = Interior(model,tags="solid")
10199
Ωf = Interior(model,tags="fluid")

0 commit comments

Comments
 (0)