@@ -15,8 +15,6 @@ PW_Basis::PW_Basis()
1515
1616PW_Basis::PW_Basis (std::string device_, std::string precision_) : device(std::move(device_)), precision(std::move(precision_)) {
1717 classname=" PW_Basis" ;
18- this ->ft .set_device (this ->device );
19- this ->ft .set_precision (this ->precision );
2018 this ->fft_bundle .setfft (" cpu" ,this ->precision );
2119}
2220
@@ -57,19 +55,15 @@ void PW_Basis::setuptransform()
5755 this ->distribute_r ();
5856 this ->distribute_g ();
5957 this ->getstartgr ();
60- this ->ft .clear ();
6158 this ->fft_bundle .clear ();
6259 if (this ->xprime )
6360 {
64- this ->ft .initfft (this ->nx ,this ->ny ,this ->nz ,this ->lix ,this ->rix ,this ->nst ,this ->nplane ,this ->poolnproc ,this ->gamma_only , this ->xprime );
6561 this ->fft_bundle .initfft (this ->nx ,this ->ny ,this ->nz ,this ->lix ,this ->rix ,this ->nst ,this ->nplane ,this ->poolnproc ,this ->gamma_only , this ->xprime );
6662 }
6763 else
6864 {
69- this ->ft .initfft (this ->nx ,this ->ny ,this ->nz ,this ->liy ,this ->riy ,this ->nst ,this ->nplane ,this ->poolnproc ,this ->gamma_only , this ->xprime );
7065 this ->fft_bundle .initfft (this ->nx ,this ->ny ,this ->nz ,this ->liy ,this ->riy ,this ->nst ,this ->nplane ,this ->poolnproc ,this ->gamma_only , this ->xprime );
7166 }
72- this ->ft .setupFFT ();
7367 this ->fft_bundle .setupFFT ();
7468 ModuleBase::timer::tick (this ->classname , " setuptransform" );
7569}
0 commit comments