@@ -31,7 +31,7 @@ void PW_Basis_K:: real2recip(std::complex<double> * in, std::complex<double> * o
3131
3232 for (int igl = 0 ; igl < this ->npwk [ik] ; ++igl)
3333 {
34- out[igl] = this ->ft .aux1 [this ->igl2isz_k [igl+ik*this ->npwk_max ]];
34+ out[igl] = this ->ft .aux1 [this ->igl2isz_k [igl+ik*this ->npwk_max ]] / double ( this -> bignxyz ) ;
3535 }
3636 return ;
3737 ModuleBase::timer::tick (" PW_Basis_K" , " real2recip" );
@@ -68,7 +68,7 @@ void PW_Basis_K:: real2recip(double * in, std::complex<double> * out, int ik)
6868
6969 for (int igl = 0 ; igl < this ->npwk [ik] ; ++igl)
7070 {
71- out[igl] = this ->ft .aux1 [this ->igl2isz_k [igl+ik*this ->npwk_max ]];
71+ out[igl] = this ->ft .aux1 [this ->igl2isz_k [igl+ik*this ->npwk_max ]] / double ( this -> bignxyz ) ;
7272 }
7373 ModuleBase::timer::tick (" PW_Basis_K" , " real2recip_gamma_only" );
7474 return ;
@@ -97,7 +97,7 @@ void PW_Basis_K:: recip2real(std::complex<double> * in, std::complex<double> * o
9797
9898 for (int ir = 0 ; ir < this ->nrxx ; ++ir)
9999 {
100- out[ir] = this ->ft .aux1 [ir] / double ( this -> bignxyz ) ;
100+ out[ir] = this ->ft .aux1 [ir];
101101 }
102102 ModuleBase::timer::tick (" PW_Basis_K" , " recip2real" );
103103
@@ -136,7 +136,7 @@ void PW_Basis_K:: recip2real(std::complex<double> * in, double * out, int ik)
136136 {
137137 for (int ipy = 0 ; ipy < npy ; ++ipy)
138138 {
139- out[ix*npy + ipy] = this ->ft .r_rspace [ix*npy*2 + ipy] / double ( this -> bignxyz ) ;
139+ out[ix*npy + ipy] = this ->ft .r_rspace [ix*npy*2 + ipy];
140140 }
141141 }
142142 ModuleBase::timer::tick (" PW_Basis_K" , " recip2real_gamma_only" );
@@ -159,7 +159,7 @@ void PW_Basis_K:: real2recip(std::complex<float> * in, std::complex<float> * out
159159
160160 for (int igl = 0 ; igl < this ->npwk [ik] ; ++igl)
161161 {
162- out[igl] = this ->ft .auxf1 [this ->igl2isz_k [igl+ik*this ->npwk_max ]];
162+ out[igl] = this ->ft .auxf1 [this ->igl2isz_k [igl+ik*this ->npwk_max ]] / float ( this -> bignxyz ) ;
163163 }
164164 return ;
165165}
@@ -184,7 +184,7 @@ void PW_Basis_K:: real2recip(float * in, std::complex<float> * out, int ik)
184184
185185 for (int igl = 0 ; igl < this ->npwk [ik] ; ++igl)
186186 {
187- out[igl] = this ->ft .auxf1 [this ->igl2isz_k [igl+ik*this ->npwk_max ]];
187+ out[igl] = this ->ft .auxf1 [this ->igl2isz_k [igl+ik*this ->npwk_max ]] / float ( this -> bignxyz ) ;
188188 }
189189 return ;
190190}
@@ -206,7 +206,7 @@ void PW_Basis_K:: recip2real(std::complex<float> * in, std::complex<float> * out
206206
207207 for (int ir = 0 ; ir < this ->nrxx ; ++ir)
208208 {
209- out[ir] = this ->ft .auxf1 [ir] / float ( this -> bignxyz ) ;
209+ out[ir] = this ->ft .auxf1 [ir];
210210 }
211211
212212 return ;
@@ -232,7 +232,7 @@ void PW_Basis_K:: recip2real(std::complex<float> * in, float * out, int ik)
232232 {
233233 for (int ipy = 0 ; ipy < npy ; ++ipy)
234234 {
235- out[ix*npy + ipy] = this ->ft .rf_rspace [ix*npy*2 + ipy] / float ( this -> bignxyz ) ;
235+ out[ix*npy + ipy] = this ->ft .rf_rspace [ix*npy*2 + ipy];
236236 }
237237 }
238238 return ;
0 commit comments