/* Copyright 2019-2020 Andrew Myers, David Grote, Maxence Thevenet * Remi Lehe * * This file is part of WarpX. * * License: BSD-3-Clause-LBNL */ #ifndef WARPX_COMPLEX_H_ #define WARPX_COMPLEX_H_ #ifdef WARPX_USE_PSATD # include "FieldSolver/SpectralSolver/AnyFFT.H" #endif #include #include #include #include // Defines a complex type on GPU & CPU using Complex = amrex::GpuComplex; #ifdef WARPX_USE_PSATD static_assert(sizeof(Complex) == sizeof(AnyFFT::Complex), "The complex type in WarpX and the FFT library do not match."); #endif static_assert(sizeof(Complex) == sizeof(amrex::Real[2]), "Unexpected complex type."); #endif //WARPX_COMPLEX_H_