[Baypiggies] Link Python and Fortran
matthewturk at gmail.com
Wed Mar 31 00:33:57 CEST 2010
f2py is a good way to go, even though it has a learning curve.
Additionally, the 'fwrap' project that is coming out of Kurt Smith and
the Cython group is promising but not done yet. Forthon is another
option. In general, I would recommend f2py unless you need to
statically link your Python installation -- you can annotate the
fortran code and it will automatically generate the necessary support
On Tue, Mar 30, 2010 at 3:25 PM, Yi Qi <yiqi at stanford.edu> wrote:
> So nice to join the group. I am a python programmer.
> I wonder could anyone share with me some direction on how to link Python and
> Fortran. I have some oceanographic wave model written in Fortran, and I am
> thinking a way to wrap it into Python program I am coding. I google
> something called F2PY, but it is actually not very straightforward.
> Many thinks in advance.
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
More information about the Baypiggies