@@ -17,6 +17,7 @@ void shape_gradn(const double* PS_TOTN_real, const ModulePW::PW_Basis* rho_basis
1717}
1818
1919void eps_pot (const double * PS_TOTN_real,
20+ const double & tpiba,
2021 const complex <double >* phi,
2122 const ModulePW::PW_Basis* rho_basis,
2223 double * d_eps,
@@ -36,7 +37,7 @@ void eps_pot(const double* PS_TOTN_real,
3637 double *phisq = new double [rho_basis->nrxx ];
3738
3839 // nabla phi
39- XC_Functional::grad_rho (phi, nabla_phi, rho_basis, GlobalC::ucell. tpiba );
40+ XC_Functional::grad_rho (phi, nabla_phi, rho_basis, tpiba);
4041
4142 for (int ir = 0 ; ir < rho_basis->nrxx ; ir++)
4243 {
@@ -112,7 +113,7 @@ ModuleBase::matrix surchem::cal_vel(const UnitCell& cell,
112113 // double Ael = cal_Ael(cell, pwb);
113114
114115 // the 2nd item of tmp_Vel
115- eps_pot (PS_TOTN_real, Sol_phi, rho_basis, epsilon, epspot);
116+ eps_pot (PS_TOTN_real, cell. tpiba , Sol_phi, rho_basis, epsilon, epspot);
116117
117118 for (int i = 0 ; i < rho_basis->nrxx ; i++)
118119 {
0 commit comments