aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-31 09:49:15 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-31 09:49:15 -0700
commit2e1a233b0b7fdee3f9739db937197aa9dad57187 (patch)
treee2074b707093b5e433aa2a1469fc0f08be6e5cdb /Source/FieldSolver/SpectralSolver
parentdaeebcf054e98b0e719d21c1df2b98238b1d481c (diff)
downloadWarpX-2e1a233b0b7fdee3f9739db937197aa9dad57187.tar.gz
WarpX-2e1a233b0b7fdee3f9739db937197aa9dad57187.tar.zst
WarpX-2e1a233b0b7fdee3f9739db937197aa9dad57187.zip
move WarpX_Complex.H to Source/Utils
Diffstat (limited to 'Source/FieldSolver/SpectralSolver')
-rw-r--r--Source/FieldSolver/SpectralSolver/Make.package1
-rw-r--r--Source/FieldSolver/SpectralSolver/WarpX_Complex.H27
2 files changed, 0 insertions, 28 deletions
diff --git a/Source/FieldSolver/SpectralSolver/Make.package b/Source/FieldSolver/SpectralSolver/Make.package
index b0ee54095..7ba650a87 100644
--- a/Source/FieldSolver/SpectralSolver/Make.package
+++ b/Source/FieldSolver/SpectralSolver/Make.package
@@ -1,4 +1,3 @@
-CEXE_headers += WarpX_Complex.H
CEXE_headers += SpectralSolver.H
CEXE_sources += SpectralSolver.cpp
CEXE_headers += SpectralFieldData.H
diff --git a/Source/FieldSolver/SpectralSolver/WarpX_Complex.H b/Source/FieldSolver/SpectralSolver/WarpX_Complex.H
deleted file mode 100644
index c898c5baa..000000000
--- a/Source/FieldSolver/SpectralSolver/WarpX_Complex.H
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef WARPX_COMPLEX_H_
-#define WARPX_COMPLEX_H_
-
-#include <AMReX_REAL.H>
-
-// Define complex type on GPU/CPU
-#ifdef AMREX_USE_GPU
-
-#include <thrust/complex.h>
-#include <cufft.h>
-using Complex = thrust::complex<amrex::Real>;
-static_assert( sizeof(Complex) == sizeof(cuDoubleComplex),
- "The complex types in WarpX and cuFFT do not match.");
-
-#else
-
-#include <complex>
-#include <fftw3.h>
-using Complex = std::complex<amrex::Real>;
-static_assert( sizeof(Complex) == sizeof(fftw_complex),
- "The complex types in WarpX and FFTW do not match.");
-
-#endif
-static_assert(sizeof(Complex) == sizeof(amrex::Real[2]),
- "Unexpected complex type.");
-
-#endif //WARPX_COMPLEX_H_