@@ -68,15 +68,15 @@ namespace LR
6868
6969 // 3. v_hxc = f_hxc * rho_trans
7070 ModuleBase::matrix vr_hxc (1 , nrxx); // grid
71- this ->pot .lock ()->cal_v_eff (rho_trans, GlobalC:: ucell, vr_hxc, ispin_ks);
71+ this ->pot .lock ()->cal_v_eff (rho_trans, ucell, vr_hxc, ispin_ks);
7272 LR_Util::_deallocate_2order_nested_ptr (rho_trans, 1 );
7373
7474 // 4. V^{Hxc}_{\mu,\nu}=\int{dr} \phi_\mu(r) v_{Hxc}(r) \phi_\mu(r)
7575 Gint_inout inout_vlocal (vr_hxc.c , 0 , Gint_Tools::job_type::vlocal);
7676 this ->gint ->get_hRGint ()->set_zero ();
7777 this ->gint ->cal_gint (&inout_vlocal);
7878 this ->hR ->set_zero (); // clear hR for each bands
79- this ->gint ->transfer_pvpR (&*this ->hR , &GlobalC:: ucell); // grid to 2d block
79+ this ->gint ->transfer_pvpR (&*this ->hR , &ucell); // grid to 2d block
8080 ModuleBase::timer::tick (" OperatorLRHxc" , " grid_calculation" );
8181 }
8282
@@ -88,7 +88,7 @@ namespace LR
8888
8989 elecstate::DensityMatrix<std::complex <double >, double > DM_trans_real_imag (&pmat, 1 , kv.kvec_d , kv.get_nks () / nspin);
9090 DM_trans_real_imag.init_DMR (*this ->hR );
91- hamilt::HContainer<double > HR_real_imag (GlobalC:: ucell, &this ->pmat );
91+ hamilt::HContainer<double > HR_real_imag (ucell, &this ->pmat );
9292 LR_Util::initialize_HR<std::complex <double >, double >(HR_real_imag, ucell, gd, orb_cutoff_);
9393
9494 auto dmR_to_hR = [&, this ](const char & type) -> void
@@ -111,7 +111,7 @@ namespace LR
111111
112112 // 3. v_hxc = f_hxc * rho_trans
113113 ModuleBase::matrix vr_hxc (1 , nrxx); // grid
114- this ->pot .lock ()->cal_v_eff (rho_trans, GlobalC:: ucell, vr_hxc, ispin_ks);
114+ this ->pot .lock ()->cal_v_eff (rho_trans, ucell, vr_hxc, ispin_ks);
115115 // print_grid_nonzero(vr_hxc.c, this->poticab->nrxx, 10, "vr_hxc");
116116
117117 LR_Util::_deallocate_2order_nested_ptr (rho_trans, 1 );
@@ -123,9 +123,9 @@ namespace LR
123123
124124 // LR_Util::print_HR(*this->gint->get_hRGint(), this->ucell.nat, "VR(grid)");
125125 HR_real_imag.set_zero ();
126- this ->gint ->transfer_pvpR (&HR_real_imag, &GlobalC:: ucell, &GlobalC::GridD);
126+ this ->gint ->transfer_pvpR (&HR_real_imag, &ucell, &GlobalC::GridD);
127127 // LR_Util::print_HR(HR_real_imag, this->ucell.nat, "VR(real, 2d)");
128- LR_Util::set_HR_real_imag_part (HR_real_imag, *this ->hR , GlobalC:: ucell.nat , type);
128+ LR_Util::set_HR_real_imag_part (HR_real_imag, *this ->hR , ucell.nat , type);
129129 };
130130 this ->hR ->set_zero ();
131131 dmR_to_hR (' R' ); // real
0 commit comments