I am using
adios4dolfinx 0.8.1
fenics-basix 0.8.0
fenics-dolfinx 0.8.0
fenics-ffcx 0.8.0
fenics-ufl 2024.1.0
and I was running writing_mesh_checkpoint.py
There seem to be a problem running the
# ## Reading mesh checkpoints (N-to-M)
# We can now read the checkpoint on a different number of processes than we wrote it on.
with ipp.Cluster(engines="mpi", n=4, log_level=logging.ERROR) as cluster:
# Write mesh to file
cluster[:].push({"print_mesh_info": print_mesh_info})
query = cluster[:].apply_async(read_mesh, mesh_file)
query.wait()
assert query.successful(), query.error
print("".join(query.stdout))
section and here’s the Traceback:
Traceback (most recent call last):
File "/home/xx/writing_mesh_checkpoint.py", line 142, in <module>
assert query.successful(), query.error
AssertionError: [<RemoteError[ ]:TypeError(__init__(): incompatible function arguments. The following argument types are supported:
1. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int) -> None
2. __init__(self, element: basix::FiniteElement<double>) -> None
3. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int, variant: int) -> None
Invoked with types: dolfinx.cpp.fem.CoordinateElement_float64, basix._basixcpp.FiniteElement_float64)>, <RemoteError[ ]:TypeError(__init__(): incompatible function arguments. The following argument types are supported:
1. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int) -> None
2. __init__(self, element: basix::FiniteElement<double>) -> None
3. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int, variant: int) -> None
Invoked with types: dolfinx.cpp.fem.CoordinateElement_float64, basix._basixcpp.FiniteElement_float64)>, <RemoteError[ ]:TypeError(__init__(): incompatible function arguments. The following argument types are supported:
1. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int) -> None
2. __init__(self, element: basix::FiniteElement<double>) -> None
3. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int, variant: int) -> None
Invoked with types: dolfinx.cpp.fem.CoordinateElement_float64, basix._basixcpp.FiniteElement_float64)>, <RemoteError[ ]:TypeError(__init__(): incompatible function arguments. The following argument types are supported:
1. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int) -> None
2. __init__(self, element: basix::FiniteElement<double>) -> None
3. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int, variant: int) -> None
Invoked with types: dolfinx.cpp.fem.CoordinateElement_float64, basix._basixcpp.FiniteElement_float64)>]
I dont really understand the error, any help would be greatly appreciated
Please also note that I manually applied a patch to dolfinx as in post