@@ -34,7 +34,7 @@ void ElecStateLCAO<std::complex<double>>::psiToRho(const psi::Psi<std::complex<d
3434 // ------------------------------------------------------------
3535
3636 ModuleBase::GlobalFunc::NOTE (" Calculate the charge on real space grid!" );
37- #ifndef __NEW_GINT
37+ #ifdef __OLD_GINT
3838 this ->gint_k ->transfer_DM2DtoGrid (this ->DM ->get_DMR_vector ()); // transfer DM2D to DM_grid in gint
3939 Gint_inout inout (this ->charge ->rho , Gint_Tools::job_type::rho, PARAM.inp .nspin );
4040 this ->gint_k ->cal_gint (&inout);
@@ -71,7 +71,7 @@ void ElecStateLCAO<double>::psiToRho(const psi::Psi<double>& psi)
7171 // ------------------------------------------------------------
7272 ModuleBase::GlobalFunc::NOTE (" Calculate the charge on real space grid!" );
7373
74- #ifndef __NEW_GINT
74+ #ifdef __OLD_GINT
7575 this ->gint_gamma ->transfer_DM2DtoGrid (this ->DM ->get_DMR_vector ()); // transfer DM2D to DM_grid in gint
7676 Gint_inout inout (this ->charge ->rho , Gint_Tools::job_type::rho, PARAM.inp .nspin );
7777 this ->gint_gamma ->cal_gint (&inout);
@@ -139,7 +139,7 @@ void ElecStateLCAO<double>::dmToRho(std::vector<double*> pexsi_DM, std::vector<d
139139 }
140140
141141 ModuleBase::GlobalFunc::NOTE (" Calculate the charge on real space grid!" );
142- #ifndef __NEW_GINT
142+ #ifdef __OLD_GINT
143143 this ->gint_gamma ->transfer_DM2DtoGrid (this ->DM ->get_DMR_vector ()); // transfer DM2D to DM_grid in gint
144144 Gint_inout inout (this ->charge ->rho , Gint_Tools::job_type::rho, PARAM.inp .nspin );
145145 this ->gint_gamma ->cal_gint (&inout);
@@ -152,7 +152,7 @@ void ElecStateLCAO<double>::dmToRho(std::vector<double*> pexsi_DM, std::vector<d
152152 {
153153 ModuleBase::GlobalFunc::ZEROS (this ->charge ->kin_r [0 ], this ->charge ->nrxx );
154154 }
155- #ifndef __NEW_GINT
155+ #ifdef __OLD_GINT
156156 Gint_inout inout1 (this ->charge ->kin_r , Gint_Tools::job_type::tau);
157157 this ->gint_gamma ->cal_gint (&inout1);
158158#else
0 commit comments