deepmodeling / abacus-develop

An electronic structure package based on either plane wave basis or numerical atomic orbitals.
http://abacus.ustc.edu.cn
GNU Lesser General Public License v3.0
174 stars 136 forks source link

Error Output of Magnetic Moment in STRU #4008

Closed ieiue closed 7 months ago

ieiue commented 7 months ago

Describe the bug

When making a calculation which has "nspin=2", the result STRU from OUT.suffix has incorrect magnetic moment. image

Expected behavior

Output the correct mag or output nothing?

To Reproduce

No response

Environment

ABACUS v.3.6.0

Additional Context

No response

Task list for Issue attackers (only for developers)

ieiue commented 7 months ago

4 is my initial magnetic moment. But it still stays the same in the STRU after calculation.

WHUweiqingzhou commented 7 months ago

@ieiue, it is the same issue with #3856

QuantumMisaka commented 7 months ago

@WHUweiqingzhou @mohanchen This aspect has been mentioned by myself in the last year and then till now no change has happened, I consider that we should have a mind on it.

WHUweiqingzhou commented 7 months ago

@ieiue and @QuantumMisaka After #4044, ABACUS will output final mag instead of initial mag in STRU_ION_D with out_mul 1.