Skip to content

Commit

Permalink
processing: fix mesh mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed May 8, 2024
1 parent 421b620 commit 08a0e20
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions meshmode/mesh/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]),
)

# }}}

Expand Down Expand Up @@ -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)

# }}}
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 08a0e20

Please sign in to comment.