Hello,
I am trying to use the "many" default smoothing blocks implemented for finite element spaces for preconditioning.
So I tried to export CreateSmoothingBlocks for a finite element space (EdgeFESpace is "exactly" your NedelecFESpace), with
Code:
ExportFESpace<EdgeFESpace> (m, "EdgeFESpace")
.def("CreateSmoothingBlocks", [](shared_ptr<EdgeFESpace> self, int type) {
return self->CreateSmoothingBlocks(type);
},
py::arg("type"), "create smoothing block for this type")
;
But when I call
Code:
fes.CreateSmoothingBlocks(0)
python complains:
Code:
TypeError: Unable to convert function return value to a Python type! The signature was
(self: xfem.ngsxfem_py.EdgeFESpace, type: int) -> ngcore::Table<int, unsigned long>
I didn't find a solution to this in the source files. Can you help with this?
Best,
Guosheng