@@ -58,7 +58,7 @@ void ModuleIO::write_current(const UnitCell& ucell,
5858 {
5959 if (TD_info::td_vel_op == nullptr )
6060 {
61- ModuleBase::WARNING_QUIT (" ModuleIO::write_current" , " velocity gauge infos is null!" );
61+ ModuleBase::WARNING_QUIT (" ModuleIO::write_current" , " velocity gague infos is null!" );
6262 }
6363 for (int dir = 0 ; dir < 3 ; dir++)
6464 {
@@ -250,12 +250,12 @@ void ModuleIO::cal_tmp_DM_k(const UnitCell& ucell,
250250 double arg_td = 0.0 ;
251251 if (elecstate::H_TDDFT_pw::stype == 2 )
252252 {
253- // cal tddft phase for hybrid gauge
253+ // cal tddft phase for hybrid gague
254254 const int iat1 = tmp_ap_real.get_atom_i ();
255255 const int iat2 = tmp_ap_real.get_atom_j ();
256256 ModuleBase::Vector3<double > dtau = ucell.cal_dtau (iat1, iat2, r_index);
257257 double & tmp_lat0 = ucell.lat0 ;
258- arg_td = TD_info::td_vel_op-> cart_At * dtau * tmp_lat0;
258+ arg_td = TD_info::cart_At * dtau * tmp_lat0;
259259 }
260260 // cal k_phase
261261 // if TK==std::complex<double>, kphase is e^{ikR}
@@ -320,12 +320,12 @@ void ModuleIO::cal_tmp_DM_k(const UnitCell& ucell,
320320 if (elecstate::H_TDDFT_pw::stype == 2 )
321321 {
322322 // new
323- // cal tddft phase for mixing gauge
323+ // cal tddft phase for mixing gague
324324 const int iat1 = tmp_ap_real.get_atom_i ();
325325 const int iat2 = tmp_ap_real.get_atom_j ();
326326 ModuleBase::Vector3<double > dtau = ucell.cal_dtau (iat1, iat2, r_index);
327327 double & tmp_lat0 = ucell.lat0 ;
328- arg_td = TD_info::td_vel_op-> cart_At * dtau * tmp_lat0;
328+ arg_td = TD_info::cart_At * dtau * tmp_lat0;
329329 }
330330 const double arg = (DM_real.get_kvec_d ()[ik] * dR) * ModuleBase::TWO_PI + arg_td;
331331 double sinp, cosp;
@@ -424,7 +424,7 @@ void ModuleIO::write_current_eachk(const UnitCell& ucell,
424424 {
425425 if (TD_info::td_vel_op == nullptr )
426426 {
427- ModuleBase::WARNING_QUIT (" ModuleIO::write_current" , " velocity gauge infos is null!" );
427+ ModuleBase::WARNING_QUIT (" ModuleIO::write_current" , " velocity gague infos is null!" );
428428 }
429429 for (int dir = 0 ; dir < 3 ; dir++)
430430 {
0 commit comments