[Baypiggies] Link Python and Fortran

Matthew Turk matthewturk at gmail.com
Wed Mar 31 00:33:57 CEST 2010

Hi Apollo,

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

Good luck!


On Tue, Mar 30, 2010 at 3:25 PM, Yi Qi <yiqi at stanford.edu> wrote:
> Hi:
> 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.
> Apollo
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies

More information about the Baypiggies mailing list