Im trying to interpolate one Function
between two different meshes. Basically, what I’m doing is (assuming I already have computed T
in )
H = FunctionSpace(mesh,('Lagrange',2))
T_int = Function(H)
T_int.interpolate(T, nmm_interpolation_data=create_nonmatching_meshes_interpolation_data( T._V, H))
However, I get the following error:
TypeError: create_nonmatching_meshes_interpolation_data(): incompatible function arguments. The following argument types are supported:
1. (Vu: dolfinx::fem::FunctionSpace, Vv: dolfinx::fem::FunctionSpace) -> Tuple[List[int], List[int], List[float], List[int]]
2. (Vu: dolfinx::fem::FunctionSpace, Vv: dolfinx::fem::FunctionSpace, cells: numpy.ndarray[numpy.int32]) -> Tuple[List[int], List[int], List[float], List[int]]
Invoked with: FunctionSpace(Mesh(VectorElement(Basix element (P, triangle, 1, equispaced, unset, False), 2), 5), Basix element (P, triangle, 2, gll_warped, unset, False)), FunctionSpace(Mesh(VectorElement(Basix element (P, triangle, 1, equispaced, unset, False), 2), 6), Basix element (P, triangle, 2, gll_warped, unset, False))
I am using dolfinx 0.6.0
, thank you very much
EDIT: if I chage the order of the funcion spaces, i.e. if I call
create_nonmatching_meshes_interpolation_data( H, T._V)
I get exactly the same error