aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralFieldData.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralFieldData.H')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralFieldData.H6
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: