@@ -81,7 +81,7 @@ void Charge::destroy()
8181 delete[] _space_rhog_save;
8282 delete[] _space_kin_r;
8383 delete[] _space_kin_r_save;
84- if (XC_Functional::get_has_kedf () || PARAM.inp .out_elf [0 ] > 0 )
84+ if (XC_Functional::get_ked_flag () || PARAM.inp .out_elf [0 ] > 0 )
8585 {
8686 delete[] kin_r;
8787 delete[] kin_r_save;
@@ -122,7 +122,7 @@ void Charge::allocate(const int& nspin_in)
122122 _space_rho_save = new double [nspin * nrxx];
123123 _space_rhog = new std::complex <double >[nspin * ngmc];
124124 _space_rhog_save = new std::complex <double >[nspin * ngmc];
125- if (XC_Functional::get_has_kedf () || PARAM.inp .out_elf [0 ] > 0 )
125+ if (XC_Functional::get_ked_flag () || PARAM.inp .out_elf [0 ] > 0 )
126126 {
127127 _space_kin_r = new double [nspin * nrxx];
128128 _space_kin_r_save = new double [nspin * nrxx];
@@ -131,7 +131,7 @@ void Charge::allocate(const int& nspin_in)
131131 rhog = new std::complex <double >*[nspin];
132132 rho_save = new double *[nspin];
133133 rhog_save = new std::complex <double >*[nspin];
134- if (XC_Functional::get_has_kedf () || PARAM.inp .out_elf [0 ] > 0 )
134+ if (XC_Functional::get_ked_flag () || PARAM.inp .out_elf [0 ] > 0 )
135135 {
136136 kin_r = new double *[nspin];
137137 kin_r_save = new double *[nspin];
@@ -152,7 +152,7 @@ void Charge::allocate(const int& nspin_in)
152152 ModuleBase::GlobalFunc::ZEROS (rhog[is], ngmc);
153153 ModuleBase::GlobalFunc::ZEROS (rho_save[is], nrxx);
154154 ModuleBase::GlobalFunc::ZEROS (rhog_save[is], ngmc);
155- if (XC_Functional::get_has_kedf () || PARAM.inp .out_elf [0 ] > 0 )
155+ if (XC_Functional::get_ked_flag () || PARAM.inp .out_elf [0 ] > 0 )
156156 {
157157 kin_r[is] = _space_kin_r + is * nrxx;
158158 ModuleBase::GlobalFunc::ZEROS (kin_r[is], nrxx);
@@ -172,7 +172,7 @@ void Charge::allocate(const int& nspin_in)
172172 ModuleBase::Memory::record (" Chg::rho_save" , sizeof (double ) * nspin * nrxx);
173173 ModuleBase::Memory::record (" Chg::rhog" , sizeof (double ) * nspin * ngmc);
174174 ModuleBase::Memory::record (" Chg::rhog_save" , sizeof (double ) * nspin * ngmc);
175- if (XC_Functional::get_has_kedf () || PARAM.inp .out_elf [0 ] > 0 )
175+ if (XC_Functional::get_ked_flag () || PARAM.inp .out_elf [0 ] > 0 )
176176 {
177177 ModuleBase::Memory::record (" Chg::kin_r" , sizeof (double ) * nspin * ngmc);
178178 ModuleBase::Memory::record (" Chg::kin_r_save" , sizeof (double ) * nspin * ngmc);
@@ -702,7 +702,7 @@ void Charge::save_rho_before_sum_band()
702702 for (int is = 0 ; is < PARAM.inp .nspin ; is++)
703703 {
704704 ModuleBase::GlobalFunc::DCOPY (rho[is], rho_save[is], this ->rhopw ->nrxx );
705- if (XC_Functional::get_has_kedf ())
705+ if (XC_Functional::get_ked_flag ())
706706 {
707707 ModuleBase::GlobalFunc::DCOPY (kin_r[is], kin_r_save[is], this ->rhopw ->nrxx );
708708 }
0 commit comments