CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   FFTW for Fortran (https://www.cfd-online.com/Forums/main/13897-fftw-fortran.html)

Benjamin Cassart August 1, 2007 08:13

FFTW for Fortran
 
Hi,

I'm trying to use FFTW with Fortran. I've been told to use a file called libfft in the make file to allow Fortran to access the fftw functions.

I don't find this file, even after making the: ./configure make make install

or even when adding --enable-f77 (theoretically the default value) as an option after the ./configure command.

Is there a trick I've been missing?

Regards,

Benjamin

Praveen. C August 1, 2007 09:25

Re: FFTW for Fortran
 
If you are using fftw from www.fftw.org then you should have some library files like libfftw3.so and libfftw3f.so (This is what I see in my case as I have version 3 of fftw). I guess you should link to them either using -lfftw3f or using the archive files (*.a).

Benjamin Cassart August 1, 2007 10:22

Re: FFTW for Fortran
 
I took FFTW from the official site, release 3.1.2. But the closest file I have is libfftw3.la, is this the one I have to use?

Benjamin Cassart August 1, 2007 10:31

Re: FFTW for Fortran
 
Apparently, it's not the right one:

IPO link: "(snip)/fftw-3.1.2/libfftw3.la" file format not recognized

ld: (snip)/fftw-3.1.2/libfftw3.la bad magic number (not a Mach-O file)


All times are GMT -4. The time now is 22:07.