Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PwBandsWorkChain: Fix nbnd for spin-polarised calculations #875

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

mbercx
Copy link
Member

@mbercx mbercx commented Dec 21, 2022

Fixes #874

When running spin-polarised calculations (nspin != 2) with the PwBandsWorkChain and providing an nbands_factor, the number of bands should not be doubled, since QE doubles the number of treated k-points instead.

Here we fix the PwBandsWorkChain by removing the nspin_factor from the equations to determine the number of bands for the bands calculation in the work chain.

When running spin-polarised calculations (`nspin != 2`) with the
`PwBandsWorkChain` and providing an `nbands_factor`, the number of bands
should _not_ be doubled, since QE doubles the number of treated k-points
instead.

Here we fix the `PwBandsWorkChain` by removing the `nspin_factor` from
the equations to determine the number of bands for the `bands`
calculation in the work chain.
@mbercx mbercx requested a review from sphuber December 21, 2022 10:19
Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Thanks @mbercx Changes look good, just a small typo in the commit message perhaps?

When running spin-polarised calculations (`nspin != 2`)

should that be

When running spin-polarised calculations (`nspin >= 2`)

?

@mbercx mbercx merged commit 62f6149 into aiidateam:main Jan 6, 2023
@mbercx
Copy link
Member Author

mbercx commented Jan 6, 2023

Thanks @sphuber! Fixed in the final commit message.

@mbercx mbercx deleted the fix/874/bands-nspin branch January 6, 2023 09:32
bastonero pushed a commit that referenced this pull request Apr 5, 2023
When running spin-polarised calculations (`nspin >= 2`) with the
`PwBandsWorkChain` and providing an `nbands_factor`, the number of bands
should _not_ be doubled, since QE doubles the number of treated k-points
instead.

Here we fix the `PwBandsWorkChain` by removing the `nspin_factor` from
the equations to determine the number of bands for the `bands`
calculation in the work chain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PwBandsWorkChain: Fix setting number of bands for spin-polarised calculations
2 participants