@@ -74,9 +74,6 @@ void Plus_U_Base::init_base(UnitCell& cell,
7474 }
7575 this ->yukawa_lambda = yukawa_lambda;
7676
77- this ->global_readin_dir = global_readin_dir;
78- this ->global_out_dir = global_out_dir;
79- this ->init_chg = init_chg;
8077 this ->npol = npol;
8178
8279 this ->nlocal = nlocal;
@@ -230,8 +227,8 @@ void Plus_U_Base::init_base(UnitCell& cell,
230227 if (occ_mat_ctrl != 0 )
231228 {
232229 std::stringstream sst;
233- sst << this -> global_readin_dir << " dm_onsite_ini.txt" ;
234- this ->read_occup_m (cell, sst.str (), this -> init_chg , nspin, npol);
230+ sst << global_readin_dir << " dm_onsite_ini.txt" ;
231+ this ->read_occup_m (cell, sst.str (), init_chg, nspin, npol);
235232#ifdef __MPI
236233 this ->local_occup_bcast (cell, nspin, npol);
237234#endif
@@ -241,11 +238,11 @@ void Plus_U_Base::init_base(UnitCell& cell,
241238 }
242239 else
243240 {
244- if (this -> init_chg == " file" )
241+ if (init_chg == " file" )
245242 {
246243 std::stringstream sst;
247- sst << this -> global_readin_dir << " dm_onsite.txt" ;
248- this ->read_occup_m (cell, sst.str (), this -> init_chg , nspin, npol);
244+ sst << global_readin_dir << " dm_onsite.txt" ;
245+ this ->read_occup_m (cell, sst.str (), init_chg, nspin, npol);
249246#ifdef __MPI
250247 this ->local_occup_bcast (cell, nspin, npol);
251248#endif
0 commit comments