Update _mesh.py
Resolve issue
@@ -74,13 +74,13 @@ class Mesh:
new_cells = []
new_cell_data = {}
- for c in self.cells:
+ for block_counter, c in self.cells:
if c.type not in prune_list:
new_cells.append(c)
for name, data in self.cell_data.items():
if name not in new_cell_data:
new_cell_data[name] = []
- new_cell_data[name] += data
+ new_cell_data[name] += [data[block_counter]]
self.cells = new_cells
self.cell_data = new_cell_data
