[f2py] Helping wrapping Multi Taper Spectral Analysis Fortran code
Pearu Peterson
pearu at f2py.com
Sat Jul 28 08:33:29 EEST 2012
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 <
ocefpaf at gmail.com> 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: falvarengafernandes at umassd.edu
> ocefpaf at gmail.com
>
> http://ocefpaf.tiddlyspot.com/
> **********************************************************
>
> _______________________________________________
> f2py-users mailing list
> f2py-users at cens.ioc.ee
> http://cens.ioc.ee/mailman/listinfo/f2py-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cens.ioc.ee/pipermail/f2py-users/attachments/20120728/1066da36/attachment.htm
More information about the f2py-users
mailing list