diff --git a/doc/wiki/Installation-related/Installation:-Option-List.md b/doc/wiki/Installation-related/Installation:-Option-List.md index ddd7109f0..776a725a5 100644 --- a/doc/wiki/Installation-related/Installation:-Option-List.md +++ b/doc/wiki/Installation-related/Installation:-Option-List.md @@ -135,7 +135,7 @@ disabled). See the "Restriction" of each option carefully. | `--hdf5` | `true`, `false` | `false` | Enable HDF5 output (see [[Outputs]]) | May need to set `HDF5_PATH` in [[configuration file \| Installation:-Machine-Configuration-File#1-Library-paths]] | `SUPPORT_HDF5` | | `--gsl` | `true`, `false` | `false` | Enable GNU scientific library | May need to set `GSL_PATH` in [[configuration file \| Installation:-Machine-Configuration-File#1-Library-paths]] | `SUPPORT_GSL` | | `--fftw` | `OFF`, `FFTW2`, `FFTW3` | `OFF` | Enable FFTW | May need to set `FFTW2/3_PATH` in [[configuration file \| Installation:-Machine-Configuration-File#1-Library-paths]] | `SUPPORT_FFTW` | -| `--spectral_interpolation` | `true`, `false` | `false` | Enable spectral interpolation | Must enable `--gsl` and set `--fftw` | `SUPPORT_SPECTRAL_INT` | +| `--spectral_interpolation` | `true`, `false` | `false` | Enable spectral interpolation. If true, the default fluid interpolation scheme will be changed to spectral interpolation. | Must enable `--gsl` and set `--fftw` | `SUPPORT_SPECTRAL_INT` | | `--rng` | `RNG_GNU_EXT`, `RNG_CPP11` | `RNG_GNU_EXT` | Random number generators. `RNG_GNU_EXT`: GNU extension `drand48_r`; `RNG_CPP11`: c++11 `` | Use `RNG_GNU_EXT` for compilers supporting GNU extensions (they may not be supported on macOS); use `RNG_CPP11` for compilers supporting c++11 (one may need to add `-std=c++11` to `CXXFLAG` → see [[compilation flags \| Installation:-Machine-Configuration-File#3-Compilation-flags]]) | `RANDOM_NUMBER` | > [!CAUTION] > On macOS, we recommend using the GNU compiler and set `--rng=RNG_CPP11`. diff --git a/src/Init/Init_ResetParameter.cpp b/src/Init/Init_ResetParameter.cpp index 4ecd59889..e0ffeafae 100644 --- a/src/Init/Init_ResetParameter.cpp +++ b/src/Init/Init_ResetParameter.cpp @@ -388,14 +388,22 @@ void Init_ResetParameter() # elif ( MODEL == ELBDM ) if ( OPT__FLU_INT_SCHEME == INT_DEFAULT ) { +# ifdef SUPPORT_SPECTRAL_INT + OPT__FLU_INT_SCHEME = INT_SPECTRAL; +# else OPT__FLU_INT_SCHEME = INT_CQUAR; +# endif PRINT_RESET_PARA( OPT__FLU_INT_SCHEME, FORMAT_INT, "" ); } if ( OPT__REF_FLU_INT_SCHEME == INT_DEFAULT ) { +# ifdef SUPPORT_SPECTRAL_INT + OPT__REF_FLU_INT_SCHEME = INT_SPECTRAL; +# else OPT__REF_FLU_INT_SCHEME = INT_CQUAR; +# endif PRINT_RESET_PARA( OPT__REF_FLU_INT_SCHEME, FORMAT_INT, "" ); }