@@ -33,7 +33,7 @@ void DFTU<OperatorLCAO<TK, TR>>::cal_force_stress(const bool cal_force,
3333 // begin the calculation of force and stress
3434 ModuleBase::timer::start (" DFTU" , " cal_force_stress" );
3535
36- const Parallel_Orbitals* paraV = dmR_tmp[0 ]->get_paraV ();
36+ const Parallel_Orbitals* pv = dmR_tmp[0 ]->get_paraV ();
3737 const int npol = this ->ucell ->get_npol ();
3838 std::vector<double > stress_tmp (6 , 0 );
3939 if (cal_force)
@@ -89,8 +89,8 @@ void DFTU<OperatorLCAO<TK, TR>>::cal_force_stress(const bool cal_force,
8989 const ModuleBase::Vector3<double >& tau1 = adjs.adjacent_tau [ad];
9090 const Atom* atom1 = &ucell->atoms [T1 ];
9191
92- auto all_indexes = paraV ->get_indexes_row (iat1);
93- auto col_indexes = paraV ->get_indexes_col (iat1);
92+ auto all_indexes = pv ->get_indexes_row (iat1);
93+ auto col_indexes = pv ->get_indexes_col (iat1);
9494 // insert col_indexes into all_indexes to get universal set with no repeat elements
9595 all_indexes.insert (all_indexes.end (), col_indexes.begin (), col_indexes.end ());
9696 std::sort (all_indexes.begin (), all_indexes.end ());
@@ -187,7 +187,7 @@ void DFTU<OperatorLCAO<TK, TR>>::cal_force_stress(const bool cal_force,
187187 if (cal_force) {
188188 this ->cal_force_IJR (iat1,
189189 iat2,
190- paraV ,
190+ pv ,
191191 nlm_tot[ad1],
192192 nlm_tot[ad2],
193193 pot_onsite,
@@ -201,7 +201,7 @@ void DFTU<OperatorLCAO<TK, TR>>::cal_force_stress(const bool cal_force,
201201 if (cal_stress) {
202202 this ->cal_stress_IJR (iat1,
203203 iat2,
204- paraV ,
204+ pv ,
205205 nlm_tot[ad1],
206206 nlm_tot[ad2],
207207 pot_onsite,
@@ -272,7 +272,7 @@ void DFTU<OperatorLCAO<TK, TR>>::cal_force_stress(const bool cal_force,
272272template <typename TK , typename TR >
273273void DFTU <OperatorLCAO<TK , TR >>::cal_force_IJR(const int & iat1,
274274 const int & iat2,
275- const Parallel_Orbitals* paraV ,
275+ const Parallel_Orbitals* pv ,
276276 const std::unordered_map<int , std::vector<double >>& nlm1_all,
277277 const std::unordered_map<int , std::vector<double >>& nlm2_all,
278278 const std::vector<double >& pot_onsite_in,
@@ -288,8 +288,8 @@ void DFTU<OperatorLCAO<TK, TR>>::cal_force_IJR(const int& iat1,
288288 // ---------------------------------------------
289289 // calculate the Nonlocal matrix for each pair of orbitals
290290 // ---------------------------------------------
291- auto row_indexes = paraV ->get_indexes_row (iat1);
292- auto col_indexes = paraV ->get_indexes_col (iat2);
291+ auto row_indexes = pv ->get_indexes_row (iat1);
292+ auto col_indexes = pv ->get_indexes_col (iat2);
293293 const int m_size = int (sqrt (pot_onsite_in.size () / nspin));
294294 const int m_size2 = m_size * m_size;
295295
@@ -349,7 +349,7 @@ void DFTU<OperatorLCAO<TK, TR>>::cal_force_IJR(const int& iat1,
349349template <typename TK , typename TR >
350350void DFTU <OperatorLCAO<TK , TR >>::cal_stress_IJR(const int & iat1,
351351 const int & iat2,
352- const Parallel_Orbitals* paraV ,
352+ const Parallel_Orbitals* pv ,
353353 const std::unordered_map<int , std::vector<double >>& nlm1_all,
354354 const std::unordered_map<int , std::vector<double >>& nlm2_all,
355355 const std::vector<double >& pot_onsite_in,
@@ -366,8 +366,8 @@ void DFTU<OperatorLCAO<TK, TR>>::cal_stress_IJR(const int& iat1,
366366 // ---------------------------------------------
367367 // calculate the Nonlocal matrix for each pair of orbitals
368368 // ---------------------------------------------
369- auto row_indexes = paraV ->get_indexes_row (iat1);
370- auto col_indexes = paraV ->get_indexes_col (iat2);
369+ auto row_indexes = pv ->get_indexes_row (iat1);
370+ auto col_indexes = pv ->get_indexes_col (iat2);
371371 const int m_size = int (sqrt (pot_onsite_in.size () / nspin));
372372 const int m_size2 = m_size * m_size;
373373
@@ -438,7 +438,7 @@ template void DFTU<OperatorLCAO<std::complex<double>, std::complex<double>>>::ca
438438
439439template void DFTU <OperatorLCAO<double , double >>::cal_force_IJR(
440440 const int & iat1, const int & iat2,
441- const Parallel_Orbitals* paraV ,
441+ const Parallel_Orbitals* pv ,
442442 const std::unordered_map<int , std::vector<double >>& nlm1_all,
443443 const std::unordered_map<int , std::vector<double >>& nlm2_all,
444444 const std::vector<double >& pot_onsite_in,
@@ -447,7 +447,7 @@ template void DFTU<OperatorLCAO<double, double>>::cal_force_IJR(
447447 double * force1, double * force2);
448448template void DFTU <OperatorLCAO<std::complex <double >, double >>::cal_force_IJR(
449449 const int & iat1, const int & iat2,
450- const Parallel_Orbitals* paraV ,
450+ const Parallel_Orbitals* pv ,
451451 const std::unordered_map<int , std::vector<double >>& nlm1_all,
452452 const std::unordered_map<int , std::vector<double >>& nlm2_all,
453453 const std::vector<double >& pot_onsite_in,
@@ -456,7 +456,7 @@ template void DFTU<OperatorLCAO<std::complex<double>, double>>::cal_force_IJR(
456456 double * force1, double * force2);
457457template void DFTU <OperatorLCAO<std::complex <double >, std::complex <double >>>::cal_force_IJR(
458458 const int & iat1, const int & iat2,
459- const Parallel_Orbitals* paraV ,
459+ const Parallel_Orbitals* pv ,
460460 const std::unordered_map<int , std::vector<double >>& nlm1_all,
461461 const std::unordered_map<int , std::vector<double >>& nlm2_all,
462462 const std::vector<double >& pot_onsite_in,
@@ -466,7 +466,7 @@ template void DFTU<OperatorLCAO<std::complex<double>, std::complex<double>>>::ca
466466
467467template void DFTU <OperatorLCAO<double , double >>::cal_stress_IJR(
468468 const int & iat1, const int & iat2,
469- const Parallel_Orbitals* paraV ,
469+ const Parallel_Orbitals* pv ,
470470 const std::unordered_map<int , std::vector<double >>& nlm1_all,
471471 const std::unordered_map<int , std::vector<double >>& nlm2_all,
472472 const std::vector<double >& pot_onsite_in,
@@ -477,7 +477,7 @@ template void DFTU<OperatorLCAO<double, double>>::cal_stress_IJR(
477477 double * stress);
478478template void DFTU <OperatorLCAO<std::complex <double >, double >>::cal_stress_IJR(
479479 const int & iat1, const int & iat2,
480- const Parallel_Orbitals* paraV ,
480+ const Parallel_Orbitals* pv ,
481481 const std::unordered_map<int , std::vector<double >>& nlm1_all,
482482 const std::unordered_map<int , std::vector<double >>& nlm2_all,
483483 const std::vector<double >& pot_onsite_in,
@@ -488,7 +488,7 @@ template void DFTU<OperatorLCAO<std::complex<double>, double>>::cal_stress_IJR(
488488 double * stress);
489489template void DFTU <OperatorLCAO<std::complex <double >, std::complex <double >>>::cal_stress_IJR(
490490 const int & iat1, const int & iat2,
491- const Parallel_Orbitals* paraV ,
491+ const Parallel_Orbitals* pv ,
492492 const std::unordered_map<int , std::vector<double >>& nlm1_all,
493493 const std::unordered_map<int , std::vector<double >>& nlm2_all,
494494 const std::vector<double >& pot_onsite_in,
0 commit comments