Skip to content

Commit 9549092

Browse files
committed
update control flow
1 parent 51756fd commit 9549092

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/module_basis/module_pw/module_fft/fft_bundle.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void FFT_Bundle::initfft(int nx_in,
7272
ModuleBase::WARNING_QUT("device","now dsp fft is not support for the float type");
7373
fft_double=make_unique<FFT_DSP<double>>();
7474
fft_double->initfft(nx_in,ny_in,nz_in);
75-
#endif
75+
#else
7676
fft_float = make_unique<FFT_CPU<float>>(this->fft_mode);
7777
fft_double = make_unique<FFT_CPU<double>>(this->fft_mode);
7878
if (float_flag)
@@ -101,6 +101,7 @@ void FFT_Bundle::initfft(int nx_in,
101101
gamma_only_in,
102102
xprime_in);
103103
}
104+
#endif
104105
}
105106
if (device=="gpu")
106107
{

source/module_basis/module_pw/module_fft/fft_dsp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ void FFT_DSP<double>::setupFFT()
2121
PLAN* ptr_plan_forward;
2222
PLAN* ptr_plan_backward;
2323
INT num_thread=8;
24-
2524
INT size;
2625
//open cluster id
2726
hthread_dev_open(cluster_id);

0 commit comments

Comments
 (0)