diff options
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralFieldData.H')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/SpectralFieldData.H | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H index e66a9ce50..3088c9867 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralFieldData.H +++ b/Source/FieldSolver/SpectralSolver/SpectralFieldData.H @@ -12,6 +12,8 @@ #include <SpectralKSpace.H> #include <AMReX_MultiFab.H> +#include <string> + // Declare type for spectral fields using SpectralField = amrex::FabArray< amrex::BaseFab <Complex> >; @@ -71,6 +73,16 @@ class SpectralFieldData #if (AMREX_SPACEDIM==3) SpectralShiftFactor yshift_FFTfromCell, yshift_FFTtoCell; #endif + +#ifdef AMREX_USE_GPU + /** \brief This method converts a cufftResult + * into the corresponding string + * + * @param[in] err a cufftResult + * @return an std::string + */ + std::string cufftErrorToString (const cufftResult& err); +#endif }; #endif // WARPX_SPECTRAL_FIELD_DATA_H_ |