diff --git a/meshmode/mesh/processing.py b/meshmode/mesh/processing.py index a61349da..1b2a64dd 100644 --- a/meshmode/mesh/processing.py +++ b/meshmode/mesh/processing.py @@ -1359,7 +1359,10 @@ def glue_mesh_boundaries( return mesh.copy( nodal_adjacency=False, - facial_adjacency_groups=facial_adjacency_groups) + _facial_adjacency_groups=tuple([ + tuple(fagrps) for fagrps in facial_adjacency_groups + ]), + ) # }}} @@ -1403,7 +1406,8 @@ def map_mesh(mesh: Mesh, f: Callable[[np.ndarray], np.ndarray]) -> Mesh: # }}} return mesh.copy( - vertices=vertices, groups=new_groups, + vertices=vertices, + groups=tuple(new_groups), is_conforming=mesh.is_conforming) # }}} @@ -1499,8 +1503,11 @@ def compute_new_map(old_map: AffineMap) -> AffineMap: # }}} return mesh.copy( - vertices=vertices, groups=new_groups, - facial_adjacency_groups=facial_adjacency_groups, + vertices=vertices, + groups=tuple(new_groups), + _facial_adjacency_groups=tuple([ + tuple(fagrps) for fagrps in facial_adjacency_groups + ]) if facial_adjacency_groups is not None else None, is_conforming=mesh.is_conforming)