|
[Sponsors] |
August 1, 2007, 09:13 |
FFTW for Fortran
|
#1 |
Guest
Posts: n/a
|
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 |
|
August 1, 2007, 10:25 |
Re: FFTW for Fortran
|
#2 |
Guest
Posts: n/a
|
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).
|
|
August 1, 2007, 11:22 |
Re: FFTW for Fortran
|
#3 |
Guest
Posts: n/a
|
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?
|
|
August 1, 2007, 11:31 |
Re: FFTW for Fortran
|
#4 |
Guest
Posts: n/a
|
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) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems with fft | ivan_cozza | OpenFOAM Running, Solving & CFD | 9 | May 12, 2011 14:30 |
Post-processing U field with fftw | Pascal_doran | OpenFOAM Post-Processing | 1 | November 23, 2010 04:05 |