We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58751d0 commit 1829309Copy full SHA for 1829309
meshmode/mesh/processing.py
@@ -151,10 +151,10 @@ def _filter_mesh_groups(
151
# {{{ filter vertex indices
152
153
filtered_vertex_indices = [
154
- mesh.groups[igrp].vertex_indices[
+ grp.vertex_indices[
155
filtered_group_elements[igrp], :]
156
- for igrp in range(len(mesh.groups))
157
- if mesh.groups[igrp].vertex_indices is not None]
+ for igrp, grp in enumerate(mesh.groups)
+ if grp.vertex_indices is not None]
158
159
filtered_vertex_indices_flat = np.concatenate([indices.ravel() for indices
160
in filtered_vertex_indices])
0 commit comments