@@ -35,7 +35,7 @@ namespace ModulePW
3535 this ->nxyz ,
3636 add,
3737 factor,
38- this ->ig2ixyz_k_cpu + startig,
38+ this ->ig2ixyz_k_cpu . data () + startig,
3939 auxr,
4040 out);
4141 }
@@ -49,23 +49,19 @@ namespace ModulePW
4949 assert (this ->gamma_only == false );
5050 const base_device::DEVICE_CPU* ctx;
5151 const base_device::DEVICE_GPU* gpux;
52- printf (" beforce the recip2real_dsp\n " );
5352 // memset the auxr of 0 in the auxr,here the len of the auxr is nxyz
5453 auto * auxr = this ->fft_bundle .get_auxr_3d_data <double >();
5554 memset (auxr,0 ,this ->nxyz *2 *8 );
5655
5756 const int startig = ik * this ->npwk_max ;
5857 const int npw_k = this ->npwk [ik];
59- printf (" beforce the set_3d_fft_box_op\n " );
6058 // copy the mapping form the type of stick to the 3dfft
6159 set_3d_fft_box_op<double ,base_device::DEVICE_CPU>()
6260 (
63- ctx,npw_k,this ->ig2ixyz_k_cpu +startig,in,auxr
61+ ctx,npw_k,this ->ig2ixyz_k_cpu . data () +startig,in,auxr
6462 );
65- printf (" beforce the fft3D_backward\n " );
6663 // use 3d fft backward
6764 this ->fft_bundle .fft3D_backward (gpux,auxr,auxr);
68- printf (" beforce the add\n " );
6965 if (add)
7066 {
7167 const int one =1 ;
@@ -76,7 +72,6 @@ namespace ModulePW
7672 {
7773 memcpy (out,auxr,nrxx*2 *8 );
7874 }
79- printf (" after the add\n " );
8075 }
8176 template <>
8277 void PW_Basis_K::convolution (const base_device::DEVICE_CPU* ctx,
@@ -114,7 +109,7 @@ namespace ModulePW
114109 // copy the mapping form the type of stick to the 3dfft
115110 set_3d_fft_box_op<double ,base_device::DEVICE_CPU>()
116111 (
117- ctx,npw_k,this ->ig2ixyz_k_cpu +startig,input,auxr
112+ ctx,npw_k,this ->ig2ixyz_k_cpu . data () +startig,input,auxr
118113 );
119114
120115 // use 3d fft backward
@@ -135,7 +130,7 @@ namespace ModulePW
135130 this ->nxyz ,
136131 add,
137132 factor,
138- this ->ig2ixyz_k_cpu + startig,
133+ this ->ig2ixyz_k_cpu . data () + startig,
139134 auxr,
140135 output);
141136 ModuleBase::timer::tick (this ->classname ," convolution" );
0 commit comments