We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 575c167 commit 7f4d4a3Copy full SHA for 7f4d4a3
source/module_basis/module_pw/module_fft/fft_bundle.cpp
@@ -50,15 +50,15 @@ void FFT_Bundle::initfft(int nx_in,
50
if (this->precision == "single" || this->precision == "mixing")
51
{
52
float_flag = true;
53
+ if (this->precision == "mixing")
54
+ {
55
+ double_flag = true;
56
+ }
57
#if not defined(__ENABLE_FLOAT_FFTW)
58
if (this->device == "cpu")
59
60
ModuleBase::WARNING_QUIT("FFT_Bundle", "Please enable float fftw in the cmake to use float fft");
61
}
- if (this->precision == "mixing")
- {
- double_flag = true;
- }
62
#endif
63
64
else if (this->precision == "double")
0 commit comments