Skip to content

Commit 0e855a7

Browse files
authored
Update esolver_ks.h
1 parent b0503e4 commit 0e855a7

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

source/module_esolver/esolver_ks.h

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,31 +61,43 @@ class ESolver_KS : public ESolver_FP
6161
//! Hamiltonian
6262
hamilt::Hamilt<T, Device>* p_hamilt = nullptr;
6363

64+
//! PW for wave functions, only used in KSDFT, not in OFDFT
6465
ModulePW::PW_Basis_K* pw_wfc = nullptr;
6566

67+
//! Charge mixing method, only used in KDSFT, not in OFDFT
6668
Charge_Mixing* p_chgmix = nullptr;
6769

70+
//! wave functions, this one may be deleted in near future
71+
//! mohan note 2024-11-14
6872
wavefunc wf;
6973

70-
// wavefunction coefficients
74+
//! Electronic wavefunctions
7175
psi::Psi<T>* psi = nullptr;
7276

73-
std::string basisname; // PW or LCAO
77+
//! plane wave or LCAO
78+
std::string basisname;
79+
80+
//! number of electrons
7481
double esolver_KS_ne = 0.0;
75-
bool oscillate_esolver = false; // whether esolver is oscillated
82+
83+
//! whether esolver is oscillated
84+
bool oscillate_esolver = false;
85+
86+
//! the start time of scf iteration
7687
#ifdef __MPI
77-
double iter_time; // the start time of scf iteration
88+
double iter_time;
7889
#else
7990
std::chrono::system_clock::time_point iter_time;
8091
#endif
81-
double diag_ethr; // the threshold for diagonalization
82-
double scf_thr; // scf density threshold
83-
double scf_ene_thr; // scf energy threshold
84-
double drho; // the difference between rho_in (before HSolver) and rho_out (After HSolver)
85-
double hsolver_error; // the error of HSolver
86-
int maxniter; // maximum iter steps for scf
87-
int niter; // iter steps actually used in scf
88-
int out_freq_elec; // frequency for output
92+
93+
double diag_ethr; //! the threshold for diagonalization
94+
double scf_thr; //! scf density threshold
95+
double scf_ene_thr; //! scf energy threshold
96+
double drho; //! the difference between rho_in (before HSolver) and rho_out (After HSolver)
97+
double hsolver_error; //! the error of HSolver
98+
int maxniter; //! maximum iter steps for scf
99+
int niter; //! iter steps actually used in scf
100+
int out_freq_elec; //! frequency for output
89101
};
90102
} // namespace ModuleESolver
91103
#endif

0 commit comments

Comments
 (0)