Skip to content

Commit 8b81708

Browse files
committed
remove useless code
1 parent 09cd59d commit 8b81708

File tree

2 files changed

+23
-328
lines changed

2 files changed

+23
-328
lines changed

source/module_hsolver/hsolver_pw_sdft.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,6 @@ void HSolverPW_SDFT<T, Device>::solve(hamilt::Hamilt<T, Device>* pHamilt,
2828
const int nbands = psi.get_nbands();
2929
const int nks = psi.get_nk();
3030

31-
//---------------------------------------------------------------------------------------------------------------
32-
//---------------------------------for psi init guess!!!!--------------------------------------------------------
33-
//---------------------------------------------------------------------------------------------------------------
34-
// if (!PARAM.inp.psi_initializer && !this->initialed_psi && this->basis_type == "pw")
35-
// {
36-
// for (int ik = 0; ik < nks; ++ik)
37-
// {
38-
// /// update H(k) for each k point
39-
// pHamilt->updateHk(ik);
40-
41-
// if (nbands > 0 && GlobalV::MY_STOGROUP == 0)
42-
// {
43-
// /// update psi pointer for each k point
44-
// psi.fix_k(ik);
45-
46-
// /// for psi init guess!!!!
47-
// hamilt::diago_PAO_in_pw_k2(this->ctx, ik, psi, this->wfc_basis, this->pwf, pHamilt);
48-
// }
49-
// }
50-
// }
51-
//---------------------------------------------------------------------------------------------------------------
52-
//---------------------------------------------------------------------------------------------------------------
53-
//---------------------------------------------------------------------------------------------------------------
54-
5531
// prepare for the precondition of diagonalization
5632
std::vector<double> precondition(psi.get_nbasis(), 0.0);
5733

0 commit comments

Comments
 (0)