@@ -93,23 +93,6 @@ namespace rdmft
9393double occNum_func (double eta, int symbol = 0 , const std::string XC_func_rdmft = " hf" , const double alpha_power = 1.0 );
9494
9595
96- template <typename TK>
97- void set_zero_vector (std::vector<TK>& HK)
98- {
99- for (int i=0 ; i<HK.size (); ++i) { HK[i] = 0.0 ;
100- }
101- }
102-
103-
104- // template <typename TK>
105- // void set_zero_psi(psi::Psi<TK>& wfc)
106- // {
107- // TK* pwfc_in = &wfc(0, 0, 0);
108- // #ifdef _OPENMP
109- // #pragma omp parallel for schedule(static, 1024)
110- // #endif
111- // for(int i=0; i<wfc.size(); ++i) pwfc_in[i] = 0.0;
112- // }
11396
11497
11598template <typename TK>
@@ -321,7 +304,6 @@ class Veff_rdmft : public hamilt::OperatorLCAO<TK, TR>
321304 const std::vector<double >& orb_cutoff,
322305 Grid_Driver* GridD_in,
323306 const int & nspin,
324-
325307 const Charge* charge_in,
326308 const ModulePW::PW_Basis* rho_basis_in,
327309 const ModuleBase::matrix* vloc_in,
@@ -336,7 +318,6 @@ class Veff_rdmft : public hamilt::OperatorLCAO<TK, TR>
336318 ucell(ucell_in),
337319 gd(GridD_in),
338320 hamilt::OperatorLCAO<TK, TR>(hsk_in, kvec_d_in, hR_in),
339-
340321 charge_(charge_in),
341322 rho_basis_(rho_basis_in),
342323 vloc_(vloc_in),
@@ -360,7 +341,6 @@ class Veff_rdmft : public hamilt::OperatorLCAO<TK, TR>
360341 const std::vector<double >& orb_cutoff,
361342 Grid_Driver* GridD_in,
362343 const int & nspin,
363-
364344 const Charge* charge_in,
365345 const ModulePW::PW_Basis* rho_basis_in,
366346 const ModuleBase::matrix* vloc_in,
@@ -373,7 +353,6 @@ class Veff_rdmft : public hamilt::OperatorLCAO<TK, TR>
373353 orb_cutoff_(orb_cutoff),
374354 pot(pot_in),
375355 hamilt::OperatorLCAO<TK, TR>(hsk_in, kvec_d_in, hR_in),
376-
377356 ucell(ucell_in),
378357 gd(GridD_in),
379358 charge_(charge_in),
0 commit comments