Best Fortran Library for FFT - FFTPACK Example

  • Context: Fortran 
  • Thread starter Thread starter xaratustra
  • Start date Start date
  • Tags Tags
    Fft Fortran
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 6K views
xaratustra
Messages
38
Reaction score
0
I am new to Fortran. Is there an ultimate best library for FFT for Fortran (95)?

I found this one FFTPACK. I am not sure if this is the best one. Is there anywhere a simple example how to use it?

I have huge time files (260 MB each) that I like to read in Fortran and perform FFT and store the results in HDF5 format. I almost do the same thing with C++ using FFTW, but I it is a bit slow. There is a wrapper for FFTW for Fortran, but I wondered if a pure Fortran routine will be faster?

thanks.

:smile:
 
Physics news on Phys.org
Check out 'Numerical Recipes in Fortran' the 2nd edition is available free from www.nr.com
Chapter 12 covers about all the FFT algorithms you will need. Note the copyright statement in the preface specifically permits you to use their source !

Pure fortran will be much faster

Regards

Sam
 
great!
that is what I need.