@@ -69,7 +69,7 @@ void ElecStatePW<T, Device>::init_rho_data()
69
69
}
70
70
}
71
71
resmem_complex_op ()(this ->ctx , this ->wfcr , this ->basis ->nmaxgr , " ElecSPW::wfcr" );
72
- resmem_complex_op ()(this ->ctx , this ->wfcr_another_spin , this ->charge ->nrxx , " ElecSPW::wfcr_a" );
72
+ resmem_complex_op ()(this ->ctx , this ->wfcr_another_spin , this ->basis ->nrxx , " ElecSPW::wfcr_a" );
73
73
this ->init_rho = true ;
74
74
}
75
75
@@ -184,7 +184,14 @@ void ElecStatePW<T, Device>::rhoBandK(const psi::Psi<T, Device>& psi)
184
184
if (w1 != 0.0 )
185
185
{
186
186
// replaced by denghui at 20221110
187
- elecstate_pw_op ()(this ->ctx , GlobalV::DOMAG, GlobalV::DOMAG_Z, this ->charge ->nrxx , w1, this ->rho , this ->wfcr , this ->wfcr_another_spin );
187
+ elecstate_pw_op ()(this ->ctx ,
188
+ GlobalV::DOMAG,
189
+ GlobalV::DOMAG_Z,
190
+ this ->basis ->nrxx ,
191
+ w1,
192
+ this ->rho ,
193
+ this ->wfcr ,
194
+ this ->wfcr_another_spin );
188
195
}
189
196
}
190
197
}
@@ -203,7 +210,7 @@ void ElecStatePW<T, Device>::rhoBandK(const psi::Psi<T, Device>& psi)
203
210
if (w1 != 0.0 )
204
211
{
205
212
// replaced by denghui at 20221110
206
- elecstate_pw_op ()(this ->ctx , current_spin, this ->charge ->nrxx , w1, this ->rho , this ->wfcr );
213
+ elecstate_pw_op ()(this ->ctx , current_spin, this ->basis ->nrxx , w1, this ->rho , this ->wfcr );
207
214
}
208
215
209
216
// kinetic energy density
0 commit comments