@@ -236,15 +236,19 @@ void DFTU::folding_matrix_k(const UnitCell& ucell,
236236 // the index of orbitals in this processor
237237 const int iw1_all = start1 + ii;
238238 const int mu = pv.global2local_row (iw1_all);
239- if (mu < 0 ) { continue ;
240- }
239+ if (mu < 0 )
240+ {
241+ continue ;
242+ }
241243
242244 for (int jj = 0 ; jj < atom2->nw * PARAM.globalv .npol ; jj++)
243245 {
244246 int iw2_all = start2 + jj;
245247 const int nu = pv.global2local_col (iw2_all);
246- if (nu < 0 ) { continue ;
247- }
248+ if (nu < 0 )
249+ {
250+ continue ;
251+ }
248252
249253 int iic;
250254 if (ModuleBase::GlobalFunc::IS_COLUMN_MAJOR_KS_SOLVER (PARAM.inp .ks_solver ))
@@ -279,7 +283,6 @@ void DFTU::folding_matrix_k(const UnitCell& ucell,
279283}
280284
281285void DFTU::folding_matrix_k_new (const int ik,
282- const ModuleBase::Vector3<double >& kvec_d,
283286 hamilt::Hamilt<std::complex <double >>* p_ham)
284287{
285288 ModuleBase::TITLE (" DFTU" , " folding_matrix_k_new" );
@@ -295,19 +298,19 @@ void DFTU::folding_matrix_k_new(const int ik,
295298 if (PARAM.globalv .gamma_only_local )
296299 {
297300 dynamic_cast <hamilt::HamiltLCAO<double , double >*>(p_ham)
298- ->updateSk (ik, kvec_d, hk_type);
301+ ->updateSk (ik, hk_type);
299302 }
300303 else
301304 {
302305 if (PARAM.inp .nspin != 4 )
303306 {
304307 dynamic_cast <hamilt::HamiltLCAO<std::complex <double >, double >*>(p_ham)
305- ->updateSk (ik, kvec_d, hk_type);
308+ ->updateSk (ik, hk_type);
306309 }
307310 else
308311 {
309312 dynamic_cast <hamilt::HamiltLCAO<std::complex <double >, std::complex <double >>*>(p_ham)
310- ->updateSk (ik, kvec_d, hk_type);
313+ ->updateSk (ik, hk_type);
311314 }
312315 }
313316}
0 commit comments