CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

FFTW for Fortran

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2007, 08:13
Default FFTW for Fortran
  #1
Benjamin Cassart
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
  Reply With Quote

Old   August 1, 2007, 09:25
Default Re: FFTW for Fortran
  #2
Praveen. C
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).
  Reply With Quote

Old   August 1, 2007, 10:22
Default Re: FFTW for Fortran
  #3
Benjamin Cassart
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?
  Reply With Quote

Old   August 1, 2007, 10:31
Default Re: FFTW for Fortran
  #4
Benjamin Cassart
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)
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with fft ivan_cozza OpenFOAM Running, Solving & CFD 9 May 12, 2011 13:30
Post-processing U field with fftw Pascal_doran OpenFOAM Post-Processing 1 November 23, 2010 03:05


All times are GMT -4. The time now is 02:57.