Thanks for sharing the links.
It worked with below change and other dtype with np.int32. The post helped.
subdomains = dolfinx.mesh.meshtags(mesh, mesh.topology.dim, cells, np.array(matid[ii], dtype=np.int32))
Thanks for sharing the links.
It worked with below change and other dtype with np.int32. The post helped.
subdomains = dolfinx.mesh.meshtags(mesh, mesh.topology.dim, cells, np.array(matid[ii], dtype=np.int32))