Skip to content

Commit 7f4d4a3

Browse files
committed
update compile bug
1 parent 575c167 commit 7f4d4a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/module_basis/module_pw/module_fft/fft_bundle.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ void FFT_Bundle::initfft(int nx_in,
5050
if (this->precision == "single" || this->precision == "mixing")
5151
{
5252
float_flag = true;
53+
if (this->precision == "mixing")
54+
{
55+
double_flag = true;
56+
}
5357
#if not defined(__ENABLE_FLOAT_FFTW)
5458
if (this->device == "cpu")
5559
{
5660
ModuleBase::WARNING_QUIT("FFT_Bundle", "Please enable float fftw in the cmake to use float fft");
5761
}
58-
if (this->precision == "mixing")
59-
{
60-
double_flag = true;
61-
}
6262
#endif
6363
}
6464
else if (this->precision == "double")

0 commit comments

Comments
 (0)