-
Notifications
You must be signed in to change notification settings - Fork 145
Fix: Output a warning when the lattice vector is left-handed. #5855
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
Conversation
|
During testing, I noticed many cases use left-handed lattice vectors, and users might be relying on this as well. If the program quits due to a left-handed system, it could disrupt otherwise valid calculations. |
…n_Si2_npsin2, 120_PW_KP_MD_NPT, 170_PW_MD_2O, and mulliken.txt.ref of 211_NO_S2_nupdown0
…olume to positive and continue, similar to QE's approach.
…deling#5855) * Fix: Warning Quit when the lattice vector is left-handed. * Test: Change the left-handed lattice vectors in integrate tests and examples to right-handed. * Test: Change the left-handed lattice vectors in integrate tests to right-handed * Test: Update several integrate tests again * Test: Update the result.ref of 108_PW_RE, 111_PW_elec_add, 116_PW_scan_Si2_npsin2, 120_PW_KP_MD_NPT, 170_PW_MD_2O, and mulliken.txt.ref of 211_NO_S2_nupdown0 * Refactor: Issue a warning but not terminating the program, turn the volume to positive and continue, similar to QE's approach.
Reminder
Linked Issue
Fix #4844
Unit Tests and/or Case Tests for my changes
What's changed?
Any changes of core modules? (ignore if not applicable)