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

Fix: Abnormal energies in z direction mag for an isotropic magnetic system #3177

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

hongriTianqi
Copy link
Collaborator

@hongriTianqi hongriTianqi commented Nov 8, 2023

Reminder

  • Have you linked an issue with this pull request?
  • Have you noticed possible changes of behavior below or in the linked issue?

Linked Issue

Fix #3170

What's changed?

  • GlobalV::DOMAG_Z will always be false in NC and NSPIN=4 case
  • GlobalV::DOMAG will always be true in NC and NSPIN=4 case

@hongriTianqi hongriTianqi changed the title Fix: Abnormal energies in z direction mag for an isotropic magnetic s… Fix: Abnormal energies in z direction mag for an isotropic magnetic system Nov 8, 2023
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.

This PR truns to the original setting: noncolin=1 refer to DOMAG=1 that all magnetization direction will be calculated; noncolin=0 and lspinorb =1 refer to DOMAG_Z=1 that only magnetization along with z-axis will be calculated.

@dyzheng dyzheng merged commit 49c4821 into deepmodeling:develop Nov 9, 2023
11 checks passed
@hongriTianqi hongriTianqi deleted the fixz branch May 10, 2024 07:05
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.

Abnormal energies in z direction for an isotropic magnetic system in non collinear calculation with soc
2 participants