[SciPy-User] [F2py] basic help

Pauli Virtanen pav@iki...
Thu Feb 9 12:24:54 CST 2012


09.02.2012 18:37, Benjamin kirjoitti:
> I have a fortran 77 code (which I did not write, but currently runs fine) and I
> would like to create a 'front end' for it with python. As a first step, I would
> like to simply be able to call this fortran code from python (ideally it would
> just be one call and I pass in the input as paramaters).
> 
> Based on the user guide (http://cens.ioc.ee/projects/f2py2e/usersguide/) section
> 2.1 'the quick way' I have entered the command:
> f2py -c *.f -m slab

The errors you get seem like the fortran files themselves don't compile.
If so, it's not a f2py-related issue.

Check that you can compile the Fortran source files separately:

	gfortran -o slab.o slab.f



More information about the SciPy-User mailing list