Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nschloe committed Nov 22, 2021
1 parent 3b7f8ee commit 042c537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/meshio/_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import npx
import numpy as np

from ._common import _topological_dimension, num_nodes_per_cell
from ._common import num_nodes_per_cell, topological_dimension


class CellBlock(collections.namedtuple("CellBlock", ["type", "data"])):
Expand Down Expand Up @@ -152,13 +152,13 @@ def remove_lower_dimensional_cells(self):
"""
if not self.cells:
return
max_topological_dim = max(_topological_dimension[c.type] for c in self.cells)
maxtopological_dim = max(topological_dimension[c.type] for c in self.cells)
new_cells = []
new_cell_data = {}
new_cell_sets = {}
prune_set = set()
for idx, c in enumerate(self.cells):
if _topological_dimension[c.type] == max_topological_dim:
if topological_dimension[c.type] == maxtopological_dim:
new_cells.append(c)

for name, data in self.cell_data.items():
Expand Down

0 comments on commit 042c537

Please sign in to comment.