diff options
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/WarpX_ComplexForFFT.H')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/WarpX_ComplexForFFT.H | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/FieldSolver/SpectralSolver/WarpX_ComplexForFFT.H b/Source/FieldSolver/SpectralSolver/WarpX_ComplexForFFT.H index f75c9b19a..0b48268fe 100644 --- a/Source/FieldSolver/SpectralSolver/WarpX_ComplexForFFT.H +++ b/Source/FieldSolver/SpectralSolver/WarpX_ComplexForFFT.H @@ -7,7 +7,8 @@ #ifndef WARPX_COMPLEXFORFFT_H_ #define WARPX_COMPLEXFORFFT_H_ -#include <WarpX_Complex.H> +#include "Utils/WarpX_Complex.H" + // Check the complex type on GPU/CPU #ifdef AMREX_USE_GPU @@ -17,10 +18,11 @@ static_assert( sizeof(Complex) == sizeof(cuDoubleComplex), "The complex types in WarpX and cuFFT do not match."); #else - -#include <fftw3.h> +# ifdef WARPX_USE_PSATD +# include <fftw3.h> static_assert( sizeof(Complex) == sizeof(fftw_complex), "The complex types in WarpX and FFTW do not match."); +# endif // WARPX_USE_PSATD #endif |