@@ -15,7 +15,7 @@ namespace LR
1515 // constructor for exchange-correlation kernel
1616 PotHxcLR::PotHxcLR (const std::string& xc_kernel_in, const ModulePW::PW_Basis* rho_basis_in, const UnitCell* ucell_in,
1717 const Charge* chg_gs/* ground state*/ , const Parallel_Grid& pgrid,
18- const SpinType& st_in, const std::vector<std::string>& init_xc_kernel )
18+ const SpinType& st_in, const std::vector<std::string>& lr_init_xc_kernel )
1919 :xc_kernel(xc_kernel_in), tpiba_(ucell_in->tpiba), spin_type_(st_in),
2020 xc_kernel_components_ (*rho_basis_in)
2121 {
@@ -32,20 +32,20 @@ namespace LR
3232 this ->xc_type_ = XCType (XC_Functional::get_func_type ());
3333 this ->set_integral_func (this ->spin_type_ , this ->xc_type_ );
3434
35- if (init_xc_kernel [0 ] == " file" )
35+ if (lr_init_xc_kernel [0 ] == " file" )
3636 {
3737 std::set<std::string> lda_xc = { " lda" , " pwlda" };
3838 assert (lda_xc.count (this ->xc_kernel ));
3939 const int spinsize = (1 == nspin) ? 1 : 3 ;
4040 std::vector<double > v2rho2 (spinsize * nrxx);
4141 // read fxc adn add to xc_kernel_components
42- assert (init_xc_kernel .size () >= spinsize + 1 );
42+ assert (lr_init_xc_kernel .size () >= spinsize + 1 );
4343 for (int is = 0 ;is < spinsize;++is)
4444 {
4545 double ef = 0.0 ;
4646 int prenspin = 1 ;
4747 std::vector<double > v2rho2_tmp (nrxx);
48- ModuleIO::read_vdata_palgrid (pgrid, GlobalV::MY_RANK, GlobalV::ofs_running, init_xc_kernel [is + 1 ],
48+ ModuleIO::read_vdata_palgrid (pgrid, GlobalV::MY_RANK, GlobalV::ofs_running, lr_init_xc_kernel [is + 1 ],
4949 v2rho2_tmp.data (), ucell_in->nat );
5050 for (int ir = 0 ;ir < nrxx;++ir) { v2rho2[ir * spinsize + is] = v2rho2_tmp[ir]; }
5151 }
@@ -54,16 +54,16 @@ namespace LR
5454 }
5555
5656#ifdef USE_LIBXC
57- if (init_xc_kernel [0 ] == " from_chg_file" )
57+ if (lr_init_xc_kernel [0 ] == " from_chg_file" )
5858 {
59- assert (init_xc_kernel .size () >= 2 );
59+ assert (lr_init_xc_kernel .size () >= 2 );
6060 double ** rho_for_fxc;
6161 LR_Util::new_p2 (rho_for_fxc, nspin, nrxx);
6262 double ef = 0.0 ;
6363 int prenspin = 1 ;
6464 for (int is = 0 ;is < nspin;++is)
6565 {
66- const std::string file = init_xc_kernel[init_xc_kernel .size () > nspin ? 1 + is : 1 ];
66+ const std::string file = lr_init_xc_kernel[lr_init_xc_kernel .size () > nspin ? 1 + is : 1 ];
6767 ModuleIO::read_vdata_palgrid (pgrid, GlobalV::MY_RANK, GlobalV::ofs_running, file,
6868 rho_for_fxc[is], ucell_in->nat );
6969 }
0 commit comments