-
Notifications
You must be signed in to change notification settings - Fork 96
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
Skip final LDAU/J/L/MAGMOM updates and fix setting MAGMOM via user_incar_settings
#648
Conversation
Skip LDAU/J/L and MAGMOM when applying user settings to final INCAR
when _get_magmoms was called MAGMOMS instead of MAGMOM was used to retrieve the magnetic moments from the incar user settings.
I assume that no new tests will be needed but test_user_incar_settings() in tests/vasp/test_sets.py would have to be adjusted? |
Thanks very much for this. It would be good to add a new test. One that simply creates a new input set with user_incar_settings, and then calls |
Is test_user_incar_settings() not already this function? I am a bit confused about the input to the failed test_incar_magmoms_precedence() . To get the test correct I would say the input needs to be changed to the dictionary. |
@utf any opinions on which if any tests have to be changed/ new ones introduced? |
@JonathanSchmidt1, I think you're right that the |
added LDAUU, LDAUJ, LDAUL parameters to test_user_incar_settings()
changed the input from a list of magmoms to a dictionary and the corresponding test case
Fixed the magmom species to "Fe2+,spin=4" etc potential issue for users that do not know that the dictionary key for the species should look like this.
Locally the test in test_sets now passed. However, there is a potential issue. For structures containing spin, the MAGMOM entry in the INCAR file must be specifically formatted to work. For example: |
Thanks for catching this. I also wouldn't have known that immediately. Would you be able to information about this to the docstring for |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #648 +/- ##
==========================================
- Coverage 76.25% 76.10% -0.16%
==========================================
Files 87 87
Lines 7150 7151 +1
Branches 1057 1057
==========================================
- Hits 5452 5442 -10
- Misses 1374 1386 +12
+ Partials 324 323 -1
|
Hi @JonathanSchmidt1, are you able to install the pre-commit by running the following in the root atomate2 directory
This should fix the failing linting. |
Sorry for that, forgot to install it. Should be fixed now. |
Thanks! |
user_incar_settings
Skip LDAU/J/L and MAGMOM when applying user settings to final INCAR. Corrected MAGMOMS to MAGMOM
Summary
LDAU/J/L and MAGMOM tags are skipped when applying the user_incar_settings a final time to the INCAR. This fixes an issue of them being written as a dictionary in the final INCAR. The second commit corrects as spelling mistake that would cause user_incar_settings of MAGMOM to be ignored.
Closes #646.