Skip to content
Snippets Groups Projects
Commit 8b127637 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge branch 'distributed-surface' into 'master'

get_connected_partitions: Allow meshes without a boundary

See merge request !69
parents c8750db2 c42f46c4
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