@@ -165,8 +165,8 @@ template <typename T, typename Device>
165165void PsiInitializerAtomic<T, Device>::proj_ao_onkG(const int ik)
166166{
167167 ModuleBase::timer::tick (" PsiInitializerAtomic" , " proj_ao_onkG" );
168- const int ik_psig = (this ->psig_ ->get_nk () == 1 ) ? 0 : ik;
169- this ->psig_ ->fix_k (ik_psig);
168+ const int ik_psig = (this ->d_psig_ ->get_nk () == 1 ) ? 0 : ik;
169+ this ->d_psig_ ->fix_k (ik_psig);
170170 // this->print_status(psi);
171171 const int npw = this ->pw_wfc_ ->npwk [ik];
172172 int lmax = this ->p_ucell_ ->lmax_ppwf ;
@@ -247,7 +247,7 @@ void PsiInitializerAtomic<T, Device>::proj_ao_onkG(const int ik)
247247 }
248248 for (int ig = 0 ; ig < npw; ig++)
249249 {
250- (*(this ->psig_ ))(index,
250+ (*(this ->d_psig_ ))(index,
251251 ig + this ->pw_wfc_ ->npwk_max *is ) =
252252 this ->template cast_to_T <T>(
253253 lphase * cg_coeffs[is] * sk[ig] * aux[ig] * ovlp_pswfcjlg[ig]
@@ -258,7 +258,7 @@ void PsiInitializerAtomic<T, Device>::proj_ao_onkG(const int ik)
258258 {
259259 for (int ig=0 ; ig < npw; ig++)
260260 {
261- (*(this ->psig_ ))(index,
261+ (*(this ->d_psig_ ))(index,
262262 ig + this ->pw_wfc_ ->npwk_max *is ) =
263263 this ->template cast_to_T <T>(
264264 std::complex <double >(0.0 , 0.0 )
@@ -339,16 +339,16 @@ void PsiInitializerAtomic<T, Device>::proj_ao_onkG(const int ik)
339339 fdw = phase_factor (0.5 *alpha, -1 )*aux[ig];
340340 // build the orthogonal wfc
341341 // first rotation with angle (alpha + ModuleBase::PI) around (OX)
342- (*(this ->psig_ ))(index, ig) =
342+ (*(this ->d_psig_ ))(index, ig) =
343343 this ->template cast_to_T <T>(phase_factor (0.5 *gamma, 0 )*fup);
344- (*(this ->psig_ ))(index, ig+this ->pw_wfc_ ->npwk_max ) =
344+ (*(this ->d_psig_ ))(index, ig+this ->pw_wfc_ ->npwk_max ) =
345345 this ->template cast_to_T <T>(phase_factor (-0.5 *gamma, 0 )*fdw);
346346 // second rotation with angle gamma around(OZ)
347347 fup = phase_factor (0.5 *(alpha + ModuleBase::PI), 1 )*aux[ig];
348348 fdw = phase_factor (0.5 *(alpha + ModuleBase::PI), -1 )*aux[ig];
349- (*(this ->psig_ ))(index+2 *l+1 , ig) =
349+ (*(this ->d_psig_ ))(index+2 *l+1 , ig) =
350350 this ->template cast_to_T <T>(phase_factor (0.5 *gamma, 0 )*fup);
351- (*(this ->psig_ ))(index+2 *l+1 , ig+this ->pw_wfc_ ->npwk_max ) =
351+ (*(this ->d_psig_ ))(index+2 *l+1 , ig+this ->pw_wfc_ ->npwk_max ) =
352352 this ->template cast_to_T <T>(phase_factor (-0.5 *gamma, 0 )*fdw);
353353 }
354354 index++;
@@ -385,22 +385,22 @@ void PsiInitializerAtomic<T, Device>::proj_ao_onkG(const int ik)
385385 fdown = ModuleBase::IMAG_UNIT * sin (0.5 * alpha) * aux[ig];
386386 // build the orthogonal wfc
387387 // first rotation with angle(alpha+ModuleBase::PI) around(OX)
388- (*(this ->psig_ ))(index, ig) =
388+ (*(this ->d_psig_ ))(index, ig) =
389389 this ->template cast_to_T <T>(
390390 (cos (0.5 *gamman) + ModuleBase::IMAG_UNIT * sin (0.5 *gamman)) * fup
391391 );
392- (*(this ->psig_ ))(index, ig+ this ->pw_wfc_ ->npwk_max ) =
392+ (*(this ->d_psig_ ))(index, ig+ this ->pw_wfc_ ->npwk_max ) =
393393 this ->template cast_to_T <T>(
394394 (cos (0.5 *gamman) - ModuleBase::IMAG_UNIT * sin (0.5 *gamman)) * fdown
395395 );
396396 // second rotation with angle gamma around(OZ)
397397 fup = cos (0.5 * (alpha + ModuleBase::PI)) * aux[ig];
398398 fdown = ModuleBase::IMAG_UNIT * sin (0.5 * (alpha + ModuleBase::PI)) * aux[ig];
399- (*(this ->psig_ ))(index+2 *l+1 , ig) =
399+ (*(this ->d_psig_ ))(index+2 *l+1 , ig) =
400400 this ->template cast_to_T <T>(
401401 (cos (0.5 *gamman) + ModuleBase::IMAG_UNIT * sin (0.5 *gamman)) * fup
402402 );
403- (*(this ->psig_ ))(index+2 *l+1 , ig+ this ->pw_wfc_ ->npwk_max ) =
403+ (*(this ->d_psig_ ))(index+2 *l+1 , ig+ this ->pw_wfc_ ->npwk_max ) =
404404 this ->template cast_to_T <T>(
405405 (cos (0.5 *gamman) - ModuleBase::IMAG_UNIT * sin (0.5 *gamman)) * fdown
406406 );
@@ -417,7 +417,7 @@ void PsiInitializerAtomic<T, Device>::proj_ao_onkG(const int ik)
417417 const int lm = l * l + m;
418418 for (int ig = 0 ; ig < npw; ig++)
419419 {
420- (*(this ->psig_ ))(index, ig) =
420+ (*(this ->d_psig_ ))(index, ig) =
421421 this ->template cast_to_T <T>(
422422 lphase * sk [ig] * ylm (lm, ig) * ovlp_pswfcjlg[ig]
423423 );
@@ -433,7 +433,7 @@ void PsiInitializerAtomic<T, Device>::proj_ao_onkG(const int ik)
433433 /* complement the rest of bands if there are */
434434 if (this ->nbands_complem () > 0 )
435435 {
436- this ->random_t (this ->psig_ ->get_pointer (), index, this ->psig_ ->get_nbands (), ik);
436+ this ->random_t (this ->d_psig_ ->get_pointer (), index, this ->d_psig_ ->get_nbands (), ik);
437437 }
438438 ModuleBase::timer::tick (" PsiInitializerAtomic" , " proj_ao_onkG" );
439439}
0 commit comments