Skip to content

Fix: do not overwrite the input k-point weights in ibz_kpoint#6552

Merged
dyzheng merged 1 commit intodeepmodeling:LTSfrom
maki49:fix-k-weight
Oct 21, 2025
Merged

Fix: do not overwrite the input k-point weights in ibz_kpoint#6552
dyzheng merged 1 commit intodeepmodeling:LTSfrom
maki49:fix-k-weight

Conversation

@maki49
Copy link
Collaborator

@maki49 maki49 commented Sep 30, 2025

Fix a bug that k-point reduction (ibz_kpoint) overwrites the weights of k-points specified in the KPT file.

// search in all k-poins.
for (int i = 0; i < nkstot; ++i)
{
if (!is_mp) { weight = wk[i]; } // use the input weight, instead of 1/nkstot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a bug? It would be better to add an integrate test.

@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Sep 30, 2025
@dyzheng dyzheng merged commit c5d5766 into deepmodeling:LTS Oct 21, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants