Skip to content
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

Feature: Autoset a finite magmon if STRU does not specify a finite one #3453

Merged
merged 6 commits into from Jan 10, 2024

Conversation

WHUweiqingzhou
Copy link
Collaborator

@WHUweiqingzhou WHUweiqingzhou commented Jan 8, 2024

Fix #3452.

List of Changes

  1. If STRU do not set a finite magnetic moment for ALL atoms in a magnetic calculations (nspin=2||nspin=4), this PR will autoset a finite one. This PR is to avoid the users forget to set a reasonable magnetic moment in STRU, which will result in an infinitely non-magnetic ground state.
  2. In 140_PW_15_SO, STRU do not set a finite magnetic moment and get a non-magnetic result. I change the reference data.
  3. Similar with 140_PW_15_SO, I change the reference data of 207_NO_KP_OHS_SPIN4

Please Notice That:
After this PR, it will be impossible to start a magnetic calculation from a zero magnetic moment initialization though you set 0 in STRU.

Copy link
Collaborator

@dyzheng dyzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Autoset of atomic magnetization will be useful to users, thanks for your contributions!

@dyzheng dyzheng merged commit 796ca1c into deepmodeling:develop Jan 10, 2024
11 checks passed
@WHUweiqingzhou WHUweiqingzhou deleted the autoset_mag branch January 11, 2024 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Autoset magnetism of atom if STRU does not set it.
2 participants