[SciPy-user] Is it possible to pass Fortran derived data types to Python via C and SWIG?

John Salvatier jsalvati@u.washington....
Sun Nov 30 01:45:51 CST 2008

I have a Fortran 90 algorithm which uses a derived data type to return data,
and I would like to make a python wrapper for this algorithm. I understand
that f2py cannot wrap derived data types; is it possible to do so with a C
interface for the Fortran algorithm and SWIG? I would have to pass the
derived data type into a C struct and then to Python.

Best Regard,
John Salvatier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20081129/e5ffe5d9/attachment-0001.html 

More information about the SciPy-user mailing list