Skip to content

Commit 41d243a

Browse files
author
abacus_fixer
committed
delete useless members
1 parent f3cc0c8 commit 41d243a

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

source/source_pw/module_pwdft/dftu_base.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

source/source_pw/module_pwdft/dftu_base.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class Plus_U_Base
4141
void uramping_update();
4242
bool u_converged();
4343

44-
// mohan note 2025-11-07: these were static, refactored to instance members
4544
std::vector<double> u_current;
4645
std::vector<double> u_target;
4746
std::vector<int> orbital_corr;
@@ -70,12 +69,8 @@ class Plus_U_Base
7069
protected:
7170
double energy_u = 0.0;
7271

73-
protected:
7472
int cal_type = 3;
75-
std::string global_readin_dir;
76-
std::string global_out_dir;
7773
double yukawa_lambda = 0.0;
78-
std::string init_chg;
7974
int npol = 1;
8075
int nlocal = 0;
8176
bool gamma_only_local = false;

0 commit comments

Comments
 (0)