diff options
author | 2020-02-25 21:09:07 -0800 | |
---|---|---|
committer | 2020-02-25 21:09:07 -0800 | |
commit | 73cbbfe18c7f1b2d08824ff39fed59410c51f574 (patch) | |
tree | b072c07744f5a7bcd464d14c6a9317d96a3da31a /Source/FieldSolver/SpectralSolver/WarpX_ComplexForFFT.H | |
parent | 2a56e2b7eae582abc1b7e2eecd83af7a72610f9b (diff) | |
download | WarpX-73cbbfe18c7f1b2d08824ff39fed59410c51f574.tar.gz WarpX-73cbbfe18c7f1b2d08824ff39fed59410c51f574.tar.zst WarpX-73cbbfe18c7f1b2d08824ff39fed59410c51f574.zip |
Includes: Clean Up (#743)
- Use `""` for WarpX-local includes
- Order: WarpX `""`, AMReX `<>`, other third party includes `<>`
- Add dir prefixes for WarpX
Add order to includes by including from `Source/` onward and keeping
directory prefixes of non-local includes for clarity.
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 |