diff options
author | 2019-06-10 13:41:23 -0700 | |
---|---|---|
committer | 2019-06-10 13:41:23 -0700 | |
commit | dc92a96cbecb27bcae8abc29a0610a43dce53040 (patch) | |
tree | 99441b2fa8695c40d30935ef7b115e909e8518cd /Source/FieldSolver/WarpXFFT.cpp | |
parent | 4e2bc0444eacb6b3db36d7c3c3f7bbe6233c5f19 (diff) | |
download | WarpX-dc92a96cbecb27bcae8abc29a0610a43dce53040.tar.gz WarpX-dc92a96cbecb27bcae8abc29a0610a43dce53040.tar.zst WarpX-dc92a96cbecb27bcae8abc29a0610a43dce53040.zip |
Clean-up
Diffstat (limited to 'Source/FieldSolver/WarpXFFT.cpp')
-rw-r--r-- | Source/FieldSolver/WarpXFFT.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/FieldSolver/WarpXFFT.cpp b/Source/FieldSolver/WarpXFFT.cpp index 9815d43dc..e5105a4b3 100644 --- a/Source/FieldSolver/WarpXFFT.cpp +++ b/Source/FieldSolver/WarpXFFT.cpp @@ -410,6 +410,8 @@ void WarpX::PushPSATD_localFFT (int lev, amrex::Real /* dt */) void WarpX::PushPSATD_hybridFFT (int lev, amrex::Real /* dt */) { +#ifndef AMREX_USE_CUDA // Running on CPU ; use PICSAR code for the hybrid FFT + BL_PROFILE_VAR_NS("WarpXFFT::CopyDualGrid", blp_copy); BL_PROFILE_VAR_NS("PICSAR::FftPushEB", blp_push_eb); @@ -484,5 +486,8 @@ WarpX::PushPSATD_hybridFFT (int lev, amrex::Real /* dt */) { amrex::Abort("WarpX::PushPSATD: TODO"); } +#else // AMREX_USE_CUDA is defined ; running on GPU + amrex::Abort("The option `psatd.fft_hybrid_mpi_decomposition` does not work on GPU."); +#endif } |