Re: [f2py] Helping wrapping Multi Taper Spectral Analysis Fortran code
Filipe Pires Alvarenga Fernandes <[email protected]> Sat, 28 Jul 2012 06:36:49 -0300
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <CAH2VmmCdyG6S-vrUOcuRnEg_Y4jL81gRdaeOdOWAHWnh+Q2NNQ@mail.gmail.com> |
Wonderful, thanks! -Filipe On Sat, Jul 28, 2012 at 2:33 AM, Pearu Peterson <[email protected]> wrote: > Hi, > > The problem is in Fortran file mtm2.f. Go to line #2599 and change the > statement > > COMPLEX FUNCTION ZDOTC(N,ZX,INCX,ZY,INCY) > > to > > COMPLEX*16 FUNCTION ZDOTC(N,ZX,INCX,ZY,INCY) > > After this change gfortran should compile the mtm2.f file and f2py > will be able to build the corresponding extension module. > > HTH, > Pearu > > On Sat, Jul 28, 2012 at 1:14 AM, Filipe Pires Alvarenga Fernandes > <[email protected]> wrote: >> >> Hi, I am trying to wrap the following code, >> >> http://db.tt/CnZ6xqY3 >> >> using f2py. The commands I am using are: >> >> f2py mtm2.f -m mtm2 -h mtm2.pyf >> f2py -c mtm2.pyf mtm2.f >> >> However, I am facing the following error: >> >> error: Command "/usr/bin/gfortran -Wall -ffixed-form >> -fno-second-underscore -fPIC -O3 -funroll-loops >> -I/tmp/tmp_oV9I4/src.linux-x86_64-2.7 >> -I/usr/lib64/python2.7/site-packages/numpy/core/include >> -I/usr/include/python2.7 -c -c mtm2.f -o /tmp/tmp_oV9I4/mtm2.o" failed >> with exit status 1 >> >> The full log with warnings is attached. Both my Fortran and python >> are a little at a beginner level, so any help is welcome. >> >> Thanks. >> >> >> ********************************************************** >> Filipe Pires Alvarenga Fernandes, PhD Candidate >> School of Marine Science and Technology >> University of Massachusetts at Dartmouth >> 706 Rodney French Blvd., New Bedford, MA 02744 >> >> Email: [email protected] >> [email protected] >> >> http://ocefpaf.tiddlyspot.com/ >> ********************************************************** >> >> _______________________________________________ >> f2py-users mailing list >> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] >> http://cens.ioc.ee/mailman/listinfo/f2py-users >> > > > _______________________________________________ > f2py-users mailing list > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > http://cens.ioc.ee/mailman/listinfo/f2py-users >