I am gutted as a file I have been most happily working with all morning suddenly stopped to work at noon.
I create a mesh with gmsh
and all works great, as it has always before. But after issuing
domain, cell_markers, facet_markers = gmshio.model_to_mesh(gmsh.model, mesh_comm, gmsh_model_rank, gdim=gdim)
I get the error
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
1. dolfinx.cpp.fem.CoordinateElement(celltype: dolfinx.cpp.mesh.CellType, degree: int)
2. dolfinx.cpp.fem.CoordinateElement(celltype: dolfinx.cpp.mesh.CellType, degree: int, variant: basix::element::lagrange_variant)
Invoked with: , 1,
I tried to see if it worked for the tutorial Tutorial: membrane and I get the same error, it has always worked.
The MWE is hence
import gmsh
gmsh.initialize()
membrane = gmsh.model.occ.addDisk(0, 0, 0, 1, 1)
gmsh.model.occ.synchronize()
gdim = 2
gmsh.model.addPhysicalGroup(gdim, [membrane], 1)
gmsh.option.setNumber("Mesh.CharacteristicLengthMin",0.05)
gmsh.option.setNumber("Mesh.CharacteristicLengthMax",0.05)
gmsh.model.mesh.generate(gdim)
from dolfinx.io import gmshio
from mpi4py import MPI
gmsh_model_rank = 0
mesh_comm = MPI.COMM_WORLD
domain, cell_markers, facet_markers = gmshio.model_to_mesh(gmsh.model, mesh_comm, gmsh_model_rank, gdim=gdim)
and I get the error mentioned above.
Any hints please? Thanks a lot, this one left me very puzzled.
Issuing
import dolfinx
print(dolfinx.__version__, dolfinx.git_commit_hash)
I get
0.6.0 7ac1d50b477b430858a9d3f53289bb950900528d