-
Notifications
You must be signed in to change notification settings - Fork 0
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
Reorder Hubbard atoms with HubbardStructureData
#31
Comments
Indeed, see this calcfunction: https://github.com/aiidateam/aiida-quantumespresso-hp/blob/master/src/aiida_quantumespresso_hp/calculations/functions/structure_reorder_kinds.py |
Thanks @sphuber ! Yes, I new about that calcfunction. Now that we are using the IMPORTANT to discus: shall we "pre" reorder the sites within the HubbardStructureData "on storing"? I think no, since |
Fixed in #32 |
The
hp.x
code will crash if the hubbard atoms are not listed before all the other ones. Thus, at the beginning of theSelfConsistentHubbardWorkChain
we should check for this. TheHubbardStructureData
is already provided with a method that internally will reorder the sites.We need simply to implement a simple
calcfunction
that takes as input a HubbardStructureData, clones it, uses theself.reorder_hubbard_atoms()
, and gives in outputs an ordered HubbardStructureData.This functionality was already implemented before the HubbardStructureData implementation. The method will make these procedure smoother.
The text was updated successfully, but these errors were encountered: