dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #11519
shared_ptr and Python
Hi,
I have a function that returns std::tr1::shared_ptr<FunctionSpace>.
In Python, this turns out to be an object with type 'PySwigObject'.
Hence, I cannot put it into eg. 'TestFunction'.
Anyone knows how to tell SWIG the type of these shared pointers ?
The dolfin_shared_ptr_classes.i file has been included long
before the function that returns the shared pointer appear
in the .i file.
Kent
Follow ups