Fastest Fourier Transform in the West (FFTW)


The spectral solver as well as some pre and post processing tools use Fast Fourier Transforms (FFT). The library used is the »Fastest Fourier Transform in the West« (FFTW). FFTW is free software, released under the GNU General Public License.



DAMASK requires FFTW version 3.3 or later.



There are 3 ways how to install FFTW.

Distribution package

FFTW is generally available as a package on Unix-based operating systems. However, the MPI version must be available to compile the current DAMASK version. This is not the case for Ubuntu 16.04, where only the serial version is available as a package.

Ubuntu 18.04 packages
  • libfftw3-3
  • libfftw3-dev
  • libfftw3-mpi3
  • libfftw3-mpi-dev

Automated installation by PETSc

PETSc offers the possibility to download, configure, and install FFTW. See the PETSc manual for further instructions.

Compile from source

If there is a need to compile FFTW on your own machine, download the sources from www.fftw.org/download and follow the instructions on www.fftw.org#documentation. The C compiler should match the vendor of the Fortran compiler (ie. icc for ifort and gcc for gfortran)

FFTW must be build with MPI support. Suitable options are --enable-mpi --enable-sse2 --enable-avx --enable-shared --disable-fortran The required library files are called libfftw3.a, libfftw3.la, libfftw3_mpi.a, and libfftw3_mpi.la.


Known issues

  • Libraries are missing (using a distribution package)
    Install the developer version as well (i.e. on Ubuntu 18.04 libfftw3-dev and libfftw3-mpi3-dev)

  • Cannot find fftw_alloc_complex
    Most probably you're using an older version of FFTW without the Fortran 2003 interface. Update your FFTW to 3.3.x
Topic revision: r39 - 18 Oct 2019, MartinDiehl

  • News
14 Sep 2020
CMCn2020 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung (cancelled)
22 Aug 2020
Release of first preview version of DAMASK 3
19 Feb 2020
DAMASK made it to the Advanved Engineering Materials Hall of Fame
26 Mar 2019
DREAM.3D 6.5.119
(released 2019/03/22) comes with a DAMASK export filter
25 Mar 2019
Release of version v2.0.3
21 Jan 2019
DAMASK overview paper finally published with full citation information available
01 Dec 2018
DAMASK overview paper now online
17 Sep 2018
CMCn2018 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung
22 May 2018
Release of version v2.0.2
01 Sep 2016
CMCn2016 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung
25 Jul 2016
Release of version v2.0.1
08 Mar 2016
Release of version v2.0.0
22 Feb 2016
New webserver up and running
09 Feb 2016
Migrated code repository from Subversion to GitLab
17 Dec 2014
Release of revision 3813
14 May 2014
Release of revision 3108
02 Apr 2014
Release of revision 3062
16 Oct 2013
Release of revision 2689
15 Jul 2013
Release of revision 2555
15 Feb 2013
Release of revision 2174
13 Feb 2013
Doxygen documentation
16 Dec 2012
Powered by MathJax rendering
23 Nov 2012
Release of revision 1955
15 Nov 2012
Release of revision 1924
01 Nov 2012
Updated sidebar
30 Oct 2012
Significant website updates and content extensions

This site is powered by FoswikiCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DAMASK? Send feedback
§ Imprint § Data Protection