You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding magnetic moments to a structure, MPStaticSet produces different MAGMOM values in the INCAR depending on whether add_site_property() or add_spin_by_site() is used. The latter method appears to flip the signs of the magnetic moments.
Using add_site_property() produces correct MAGMOM values in INCAR
Using add_spin_by_site() flips the signs of magnetic moments in the resulting INCAR
Expected Behavior
Both methods should produce identical MAGMOM values in the INCAR file when given identical spin configurations.
MnPSe3
6.40804163940561
0.8660254037844390 -0.5000000000000000 0.0000000000000000
0.8660254037844390 0.5000000000000000 0.0000000000000000
0.0000000000000000 0.0000000000000000 3.7182201236084644
Mn P Se
2 2 6
Selective dynamics
Direct
0.0000000000000000 0.0000000000000000 0.0000000000000000 F F F
0.3333333333333357 0.3333333333333357 0.0000000000000000 F F F
0.6666666666666643 0.6666666666666643 0.0470578253908371 T T T
0.6666666666666643 0.6666666666666643 0.9529421746091629 T T T
0.6666666666666643 0.3356524591118557 0.0732317250636854 T T T
0.9976808742214800 0.6666666666666643 0.0732317250636854 T T T
0.3356524591118557 0.9976808742214800 0.0732317250636854 T T T
0.3356524591118557 0.6666666666666643 0.9267682749363146 T T T
0.9976808742214800 0.3356524591118557 0.9267682749363146 T T T
0.6666666666666643 0.9976808742214800 0.9267682749363146 T T T
The text was updated successfully, but these errors were encountered:
Python version
Python 3.13.2
Pymatgen version
2024.10.3
Operating system version
Ubuntu 24.04
Current behavior
When adding magnetic moments to a structure,
MPStaticSet
produces differentMAGMOM
values in the INCAR depending on whetheradd_site_property()
oradd_spin_by_site()
is used. The latter method appears to flip the signs of the magnetic moments.add_site_property()
produces correctMAGMOM
values in INCARadd_spin_by_site()
flips the signs of magnetic moments in the resulting INCARExpected Behavior
Both methods should produce identical
MAGMOM
values in the INCAR file when given identical spin configurations.Minimal example
Relevant files to reproduce this bug
POSCAR file:
The text was updated successfully, but these errors were encountered: