Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d5541e16 authored by Martin Genet's avatar Martin Genet
Browse files

numpy_to_vtkIdTypeArray expects a numpy.int64 array

parent 751f74fd
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ def mesh2ugrid(
# print("n_nodes_per_cell = "+str(n_nodes_per_cell))
np_connectivity = numpy.empty(
[n_cells, n_nodes_per_cell+1],
dtype=int)
dtype=numpy.int)
for i in range(n_cells):
np_connectivity[i, 0] = n_nodes_per_cell
np_connectivity[i,1:] = fs.dofmap().cell_dofs(i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment