Dear all,
I tried to read a 3D gmsh mesh file and transform it to xdmf file. I followed this post at Using the GMSH Python API to generate complex meshes | Jørgen S. Dokken. However an error occurred:
Traceback (most recent call last):
File "/mnt/d/Workspace/RFQ/mesh_transform.py", line 43, in <module>
local_entities, local_values = distribute_entity_data(mesh, mesh.topology.dim, cells, cell_values)
TypeError: distribute_entity_data(): incompatible function arguments. The following argument types are supported:
1. (mesh: dolfinx.cpp.mesh.Mesh, entity_dim: int, entities: numpy.ndarray[numpy.int64], values: numpy.ndarray[numpy.int32]) -> Tuple[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32]]
Invoked with: <dolfinx.mesh.Mesh object at 0x7f24bf7d7f70>, 2, array([[ 1114, 4, 57163],
[ 4, 5563, 57163],
[ 5, 1131, 57834],
...,
[17235, 16870, 17879],
[17326, 16892, 17439],
[17257, 17220, 17645]]), array([23, 23, 23, ..., 25, 25, 25], dtype=int32)
Thank you very much if anyone can help me.