diff --git a/src/info.cpp b/src/info.cpp index dc95f8a30f..bbc94fbccb 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -299,6 +299,7 @@ void Info::command(int narg, char **arg) if (has_png_support()) fputs("-DLAMMPS_PNG\n",out); if (has_jpeg_support()) fputs("-DLAMMPS_JPEG\n",out); if (has_ffmpeg_support()) fputs("-DLAMMPS_FFMPEG\n",out); + if (has_fft_single_support()) fputs("-DFFT_SINGLE\n",out); if (has_exceptions()) fputs("-DLAMMPS_EXCEPTIONS\n",out); #if defined(LAMMPS_BIGBIG) @@ -879,6 +880,8 @@ bool Info::is_available(const char *category, const char *name) return has_jpeg_support(); } else if (strcmp(name,"ffmpeg") == 0) { return has_ffmpeg_support(); + } else if (strcmp(name,"fft_single") == 0) { + return has_fft_single_support(); } else if (strcmp(name,"exceptions") == 0) { return has_exceptions(); } @@ -1127,6 +1130,14 @@ bool Info::has_ffmpeg_support() { #endif } +bool Info::has_fft_single_support() { +#ifdef FFT_SINGLE + return true; +#else + return false; +#endif +} + bool Info::has_exceptions() { #ifdef LAMMPS_EXCEPTIONS return true; diff --git a/src/info.h b/src/info.h index 0e7bfb68f3..c1e10a2336 100644 --- a/src/info.h +++ b/src/info.h @@ -42,6 +42,7 @@ class Info : public Command { static bool has_png_support(); static bool has_jpeg_support(); static bool has_ffmpeg_support(); + static bool has_fft_single_support(); static bool has_exceptions(); static bool has_package(const std::string &); static bool has_accelerator_feature(const std::string &, const std::string &, diff --git a/src/lammps.cpp b/src/lammps.cpp index 7185074ab4..8541011814 100644 --- a/src/lammps.cpp +++ b/src/lammps.cpp @@ -1348,6 +1348,7 @@ void LAMMPS::print_config(FILE *fp) if (Info::has_png_support()) fputs("-DLAMMPS_PNG\n",fp); if (Info::has_jpeg_support()) fputs("-DLAMMPS_JPEG\n",fp); if (Info::has_ffmpeg_support()) fputs("-DLAMMPS_FFMPEG\n",fp); + if (Info::has_fft_single_support()) fputs("-DFFT_SINGLE\n",fp); if (Info::has_exceptions()) fputs("-DLAMMPS_EXCEPTIONS\n",fp); #if defined(LAMMPS_BIGBIG) fputs("-DLAMMPS_BIGBIG\n",fp);