@@ -380,7 +380,6 @@ void FFT_CPU<double>::fftxybac(std::complex<double>* in,std::complex<double>* ou
380380 int npy = this ->nplane * this ->ny ;
381381 if (this ->xprime )
382382 {
383- ModuleBase::timer::tick (" fftxybac" , " fftybac" );
384383 #pragma omp parallel for
385384 for (int i = 0 ; i < this ->lixy + 1 ; ++i)
386385 {
@@ -391,10 +390,7 @@ void FFT_CPU<double>::fftxybac(std::complex<double>* in,std::complex<double>* ou
391390 {
392391 fftw_execute_dft (this ->planybac , (fftw_complex*)&in[i * npy], (fftw_complex*)&out[i * npy]);
393392 }
394- ModuleBase::timer::tick (" fftxybac" , " fftybac" );
395- ModuleBase::timer::tick (" fftxybac" , " fftxbac" );
396393 fftw_execute_dft (this ->planxbac1 , (fftw_complex*)in, (fftw_complex*)out);
397- ModuleBase::timer::tick (" fftxybac" , " fftxbac" );
398394 }
399395 else
400396 {
@@ -417,9 +413,7 @@ void FFT_CPU<double>::fftzfor(std::complex<double>* in, std::complex<double>* ou
417413template <>
418414void FFT_CPU<double >::fftzbac(std::complex <double >* in, std::complex <double >* out) const
419415{
420- ModuleBase::timer::tick (" fftxybac" , " fftzbac" );
421416 fftw_execute_dft (this ->planzbac , (fftw_complex*)in, (fftw_complex*)out);
422- ModuleBase::timer::tick (" fftxybac" , " fftzbac" );
423417}
424418
425419template <>
@@ -429,6 +423,7 @@ void FFT_CPU<double>::fftxyr2c(double* in, std::complex<double>* out) const
429423 if (this ->xprime )
430424 {
431425 fftw_execute_dft_r2c (this ->planxr2c , in, (fftw_complex*)out);
426+ #pragma omp parallel for
432427 for (int i = 0 ; i < this ->lixy + 1 ; ++i)
433428 {
434429 fftw_execute_dft (this ->planyfor , (fftw_complex*)&out[i * npy], (fftw_complex*)&out[i * npy]);
0 commit comments