Skip to content

Commit 40110fd

Browse files
Merge branch 'LTS' into LTS-toolchain-202503
2 parents ab0eb38 + 85a8671 commit 40110fd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

source/module_cell/klist.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ void K_Vectors::ibz_kpoint(const ModuleSymmetry::Symmetry& symm,
788788
std::vector<int> ibz2bz(this->nkstot);
789789

790790
// nkstot is the total input k-points number.
791-
const double weight = 1.0 / static_cast<double>(nkstot);
791+
double weight = 1.0 / static_cast<double>(nkstot);
792792

793793
ModuleBase::Vector3<double> kvec_rot;
794794
ModuleBase::Vector3<double> kvec_rot_k;
@@ -822,6 +822,8 @@ void K_Vectors::ibz_kpoint(const ModuleSymmetry::Symmetry& symm,
822822
// search in all k-poins.
823823
for (int i = 0; i < nkstot; ++i)
824824
{
825+
if (!is_mp) { weight = wk[i]; } // use the input weight, instead of 1/nkstot
826+
825827
// restrict to [0, 1)
826828
restrict_kpt(kvec_d[i]);
827829

source/module_hamilt_lcao/hamilt_lcaodft/hamilt_lcao.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ HamiltLCAO<TK, TR>::HamiltLCAO(const UnitCell& ucell,
5656
this->kv = &kv_in;
5757

5858
// Real space Hamiltonian is inited with template TR
59-
this->hR = new HContainer<TR>(paraV);
59+
// this->hR = new HContainer<TR>(paraV);
6060
this->sR = new HContainer<TR>(paraV);
61-
this->hsk = new HS_Matrix_K<TK>(paraV);
61+
// this->hsk = new HS_Matrix_K<TK>(paraV);
6262

6363
this->getOperator() = new OverlapNew<OperatorLCAO<TK, TR>>(this->hsk,
6464
this->kv->kvec_d,

0 commit comments

Comments
 (0)