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: If the number of NAOs for an angular momentum is 0, filter the NAOs in exx #5092

Closed
wants to merge 2 commits into from

Conversation

PeizeLin
Copy link
Collaborator

Fix the bug in issue #5086 temporarily.

If all the angular momentums with 0 NAO are greater than that are non-zero, such as 2s 2p 1d 0f 0g, now it can be calculated correctly.
But if any angular momentum with 0 NAO is less than that are non-zero, such as 2s 2p 0d 1f 0g, there still remains errors.

@mohanchen mohanchen added the Bugs (Exclude input and output) Bugs that only solvable with sufficient knowledge of DFT label Sep 13, 2024
{
for (int L=orbs[T].size()-1; L >= 0 ; L--)
{
if (orbs[T][L].size()>0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This code looks confused to me, it looks only the L = orbs[T].size()-1 is used for the judgement, then break the loop or the orbs[T] will be resized in the L loop?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If orbs[T] = 2s 2p 1d 0f 0g, it will transformed to 2s 2p 1d

@PeizeLin PeizeLin closed this by deleting the head repository Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs (Exclude input and output) Bugs that only solvable with sufficient knowledge of DFT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants