Skip to content

Commit c859a43

Browse files
cells are not masked arrays
1 parent 0cb322e commit c859a43

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/io4dolfinx/backends/exodus/backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ def read_mesh_data(
268268
cell_type = cell_types[0]
269269

270270
cells = np.vstack(connectivity_arrays)
271+
if isinstance(cells, np.ma.MaskedArray):
272+
cells = cells.filled()
271273
else:
272274
raise ValueError(f"No blocks found in {filename}")
273275
perm = dolfinx.cpp.io.perm_vtk(cell_type, cells.shape[1])
@@ -664,7 +666,7 @@ def read_cell_data(
664666
if comm.rank != 0:
665667
dataset = np.zeros((0, num_components), dtype=np.float64)
666668
_time = float(time) if time is not None else None
667-
topology = read_mesh_data(filename, comm, _time, False, backend_args=None).cells.data
669+
topology = read_mesh_data(filename, comm, _time, False, backend_args=None).cells
668670
return topology, dataset
669671

670672

0 commit comments

Comments
 (0)