Skip to content

Commit ed64231

Browse files
committed
update
1 parent 3f77d97 commit ed64231

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

source/source_esolver/esolver_ks.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void ESolver_KS<T, Device>::before_all_runners(UnitCell& ucell, const Input_para
4545
{
4646
ModuleBase::TITLE("ESolver_KS", "before_all_runners");
4747

48-
//! 1) init "before_all_runniers" in ESolver_FP
48+
//! 1) setup "before_all_runniers" in ESolver_FP
4949
ESolver_FP::before_all_runners(ucell, inp);
5050

5151
//! 2) setup some parameters
@@ -67,7 +67,7 @@ void ESolver_KS<T, Device>::before_all_runners(UnitCell& ucell, const Input_para
6767

6868
ModuleBase::GlobalFunc::DONE(GlobalV::ofs_running, "SETUP UNITCELL");
6969

70-
//! 4) setup Exc for the first element '0', because all elements have same exc
70+
//! 4) setup Exc for the first element '0' (all elements have same exc)
7171
XC_Functional::set_xc_type(ucell.atoms[0].ncpp.xc_func);
7272

7373
//! 5) setup the charge mixing parameters
@@ -84,7 +84,7 @@ void ESolver_KS<T, Device>::before_all_runners(UnitCell& ucell, const Input_para
8484
ModuleBase::GlobalFunc::DONE(GlobalV::ofs_running, "SYMMETRY");
8585
}
8686

87-
//! 7) Setup the k points according to symmetry.
87+
//! 7) setup k points in the Brillouin zone according to symmetry.
8888
this->kv.set(ucell,ucell.symm, inp.kpoint_file, inp.nspin, ucell.G, ucell.latvec, GlobalV::ofs_running);
8989
ModuleBase::GlobalFunc::DONE(GlobalV::ofs_running, "INIT K-POINTS");
9090

@@ -104,14 +104,7 @@ void ESolver_KS<T, Device>::before_all_runners(UnitCell& ucell, const Input_para
104104

105105
template <typename T, typename Device>
106106
void ESolver_KS<T, Device>::hamilt2rho_single(UnitCell& ucell, const int istep, const int iter, const double ethr)
107-
{
108-
ModuleBase::timer::tick(this->classname, "hamilt2rho_single");
109-
// Temporarily, before HSolver is constructed, it should be overrided by
110-
// LCAO, PW, SDFT and TDDFT.
111-
// After HSolver is constructed, LCAO, PW, SDFT should delete their own
112-
// hamilt2rho_single() and use:
113-
ModuleBase::timer::tick(this->classname, "hamilt2rho_single");
114-
}
107+
{}
115108

116109
template <typename T, typename Device>
117110
void ESolver_KS<T, Device>::hamilt2rho(UnitCell& ucell, const int istep, const int iter, const double ethr)

source/source_relax/test/relax_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ void ModuleSymmetry::Symmetry::symmetrize_mat3(ModuleBase::matrix& sigma, const
2626
void ModuleSymmetry::Symmetry::symmetrize_vec3_nat(double* v)const {};
2727
Structure_Factor::Structure_Factor() {};
2828
Structure_Factor::~Structure_Factor(){};
29-
void Structure_Factor::setup_structure_factor(const UnitCell* Ucell, const Parallel_Grid&, const ModulePW::PW_Basis* rho_basis){};
29+
void Structure_Factor::setup(const UnitCell* Ucell, const Parallel_Grid&, const ModulePW::PW_Basis* rho_basis){};

0 commit comments

Comments
 (0)