[F2py] basic help
2012-02-09 17:37:32 GMT
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 but I get errors. The output is really long so I won't post it here, but it looks like it does fine until it tries to compile the code. Some errors/warnings are at the bottom of this post. Note that the only changes I made to the main fortran program was making it a subroutine and passing the input as parameters. I was hoping this would be fairly trivial for me, like it was for this guy: http://moo.nac.uci.edu/~hjm/fd_rrt1d/index.html Any advice is appreciated. Ben 446 if (biz.gt.3.75) go to 148 1 Warning: Label 446 at (1) defined but not used gfortran:f77: slab.f Warning: Nonconforming tab character in column 1 of line 221 slab.h:13.24: Included at slab.f:14: parameter(mm=vm*im*jm) 1(Continue reading)
RSS Feed