← Back to team overview

dolfin team mailing list archive

pydolfin and DefaultVector

 

Hi,

it seems like we have some trouble when Vector::vec() returns a DefaultVector
in the Python interface to DOLFIN. By some reason, swig doesn't see that the
DefaultVector is simply either a PETScVector or a uBlasVector. Hence, the
returned vector is not usable from PyDOLFIN.

Does anyone have a solution to this? I have tried to use typedefs to get
around, but no luck so far.

Ola


Follow ups