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/SpectralKSpace.cpp | |
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/SpectralKSpace.cpp')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp index 9f4e9b7c8..c1e0c59d0 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp @@ -153,7 +153,7 @@ SpectralKSpace::getSpectralShiftFactor( const DistributionMapping& dm, } const Complex I{0,1}; for (int i=0; i<k.size(); i++ ){ - shift[i] = exp( I*sign*k[i]*0.5*dx[i_dim]); + shift[i] = exp( I*sign*k[i]*0.5_rt*dx[i_dim]); } } return shift_factor; |