From 4b0369217be29d5c423f220fb5349ef3e276038d Mon Sep 17 00:00:00 2001 From: ellis Date: Tue, 21 Feb 2017 21:54:19 -0600 Subject: [PATCH] partition_mesh creates facial_adjacency_groups --- meshmode/mesh/processing.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/meshmode/mesh/processing.py b/meshmode/mesh/processing.py index 37e4ac26..f49ccfbe 100644 --- a/meshmode/mesh/processing.py +++ b/meshmode/mesh/processing.py @@ -139,11 +139,21 @@ def partition_mesh(mesh, part_per_element, part_nr): new_nodes[group_nr], unit_nodes=mesh_group.unit_nodes)) from meshmode.mesh import Mesh - part_mesh = Mesh(new_vertices, new_mesh_groups) + part_mesh = Mesh(new_vertices, new_mesh_groups, facial_adjacency_groups=None) return (part_mesh, queried_elems) +def set_rank_boundaries(part_mesh, mesh, part_to_global): + """ + Looks through facial_adjacency_groups in part_mesh. + If a boundary is found, then it is possible that it + used to be connected to other faces from mesh. + If this is the case, then part_mesh will have special + boundary_tags where faces used to be connected. + """ + + # {{{ orientations def find_volume_mesh_element_group_orientation(vertices, grp): -- GitLab