diff options
author | 2020-03-13 19:53:54 -0700 | |
---|---|---|
committer | 2020-03-13 19:53:54 -0700 | |
commit | 88a3ae70f143c32788181626673cc7af5641030b (patch) | |
tree | aa1ea816c3625cda0f8cc4bfcfc0df8142d19d54 /Source/FieldSolver/SpectralSolver/SpectralFieldData.H | |
parent | 223c5db6f598743a39a08daf214a232116894157 (diff) | |
download | WarpX-88a3ae70f143c32788181626673cc7af5641030b.tar.gz WarpX-88a3ae70f143c32788181626673cc7af5641030b.tar.zst WarpX-88a3ae70f143c32788181626673cc7af5641030b.zip |
PSATD Single precision (#805)
* fix compilation for single precision PSATD with USE_GPU
* compiles and tested on CPU also
* add sentence to doc: FFTW needs to be compiled with single precision option
* add test, better pre-proc directives indent, clearer ifdef
* use using whenever possible
* indent
* fix TravisCI matrix, and improve matrix test
* need to compile with same precision for fields and particles
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralFieldData.H')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/SpectralFieldData.H | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H index a3d2716d2..37dfd84cb 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H @@ -8,7 +8,7 @@ #ifndef WARPX_SPECTRAL_FIELD_DATA_H_ #define WARPX_SPECTRAL_FIELD_DATA_H_ -#include "WarpX_ComplexForFFT.H" +#include "Utils/WarpX_Complex.H" #include "SpectralKSpace.H" #include <AMReX_MultiFab.H> @@ -44,7 +44,11 @@ class SpectralFieldData #ifdef AMREX_USE_GPU using FFTplans = amrex::LayoutData<cufftHandle>; #else +# ifdef AMREX_USE_FLOAT + using FFTplans = amrex::LayoutData<fftwf_plan>; +# else using FFTplans = amrex::LayoutData<fftw_plan>; +# endif #endif public: |