Skip to content

Commit

Permalink
Drop index from mesh element group constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Mar 4, 2024
1 parent 052d11e commit 1552d84
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions meshmode/discretization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,7 @@ def __init__(self,
raise TypeError("'actx' must be an ArrayContext")

self.mesh = mesh
groups = []
for igrp, mg in enumerate(mesh.groups):
# TODO: setting index is deprecated
ng = group_factory(mg, index=igrp)
groups.append(ng)

self.groups = groups
self.groups = [group_factory(mg) for mg in mesh.groups]

self.real_dtype = np.dtype(real_dtype)
self.complex_dtype = np.dtype({
Expand Down

0 comments on commit 1552d84

Please sign in to comment.