Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/wiki/Installation-related/Installation:-Option-List.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]] | <a name="--hdf5"></a> `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]] | <a name="--gsl"></a> `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]] | <a name="--fftw"></a> `SUPPORT_FFTW` |
| `--spectral_interpolation` | `true`, `false` | `false` | Enable spectral interpolation | Must enable `--gsl` and set `--fftw` | <a name="--spectral_interpolation"></a> `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` | <a name="--spectral_interpolation"></a> `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 `<random>` | Use `RNG_GNU_EXT` for compilers supporting GNU extensions (<b>they may not be supported on macOS</b>); use `RNG_CPP11` for compilers supporting c++11 (<b>one may need to add `-std=c++11` to `CXXFLAG`</b> &#8594; see [[compilation flags \| Installation:-Machine-Configuration-File#3-Compilation-flags]]) | <a name="--rng"></a> `RANDOM_NUMBER` |
> [!CAUTION]
> On macOS, we recommend using the GNU compiler and set `--rng=RNG_CPP11`.
Expand Down
8 changes: 8 additions & 0 deletions src/Init/Init_ResetParameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, "" );
}
Expand Down