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

John Salvatier jsalvati at u.washington.edu
Sun Nov 30 02:45:51 EST 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://mail.scipy.org/pipermail/scipy-user/attachments/20081129/e5ffe5d9/attachment.html>


More information about the SciPy-User mailing list