Skip to content

Commit

Permalink
Track meshmode's rename of ModepyElementGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 1, 2024
1 parent 223ab83 commit 9913b31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytential/symbolic/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ def map_is_shape_class(self, expr):
raise NotImplementedError(
"non-homogeneous element groups are not supported")

from meshmode.mesh import _ModepyElementGroup
from meshmode.mesh import ModepyElementGroup
meg = discr.groups[0].mesh_el_group
if isinstance(meg, _ModepyElementGroup):
return isinstance(meg._modepy_shape, expr.shape)
if isinstance(meg, ModepyElementGroup):
return isinstance(meg.shape, expr.shape)
else:
raise TypeError(f"element type not supported: '{type(meg).__name__}'")

Expand Down

0 comments on commit 9913b31

Please sign in to comment.