Skip to content
Snippets Groups Projects
Commit c42f46c4 authored by Alexandru Fikl's avatar Alexandru Fikl
Browse files

allow partitioning a hypersurface

parent 8524cd83
No related branches found
No related tags found
No related merge requests found
......@@ -239,10 +239,12 @@ def get_connected_partitions(mesh):
connected_parts = set()
from meshmode.mesh import InterPartitionAdjacencyGroup
for adj in mesh.facial_adjacency_groups:
if isinstance(adj[None], InterPartitionAdjacencyGroup):
indices = (adj[None].neighbor_partitions >= 0)
grp = adj.get(None, None)
if isinstance(grp, InterPartitionAdjacencyGroup):
indices = grp.neighbor_partitions >= 0
connected_parts = connected_parts.union(
adj[None].neighbor_partitions[indices])
grp.neighbor_partitions[indices])
return connected_parts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment