dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #06439
Re: pydolfin and DefaultVector
Ola Skavhaug skrev den 10/03-2008 følgende:
> 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
I found a fix. We must include the dolfin/default_la_types.h in the swig
interface files. Is there a reason this file is omitted in the
dolfin_headers.h file?
Ola
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
Follow ups
References