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

Add a warning quit when parameters do not match in read_wfc_nao.cpp #4087

Merged
merged 6 commits into from
May 5, 2024

Conversation

AsTonyshment
Copy link
Collaborator

@AsTonyshment AsTonyshment commented May 4, 2024

Linked Issue

Fix #4000.

What's changed?

  • Refactored the code using clang-format.
  • Added a warning quit when parameters (nlocal and nbands) do not match in read_wfc_nao.cpp (line 325 and 333 in the new file).
  • Added Doxygen-style comments to the CTOT2q function and made some other relevant changes.
  • Added const qualifiers where applicable and initialized variables at declaration.

source/module_io/read_wfc_nao.cpp Outdated Show resolved Hide resolved
source/module_io/read_wfc_nao.cpp Outdated Show resolved Hide resolved
source/module_io/read_wfc_nao.cpp Show resolved Hide resolved
source/module_io/read_wfc_nao.cpp Show resolved Hide resolved
source/module_io/read_wfc_nao.cpp Show resolved Hide resolved
source/module_io/read_wfc_nao.cpp Show resolved Hide resolved
source/module_io/read_wfc_nao.cpp Outdated Show resolved Hide resolved
source/module_io/read_wfc_nao.cpp Outdated Show resolved Hide resolved
source/module_io/read_wfc_nao.cpp Outdated Show resolved Hide resolved
source/module_io/read_wfc_nao.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@mohanchen mohanchen left a comment

Choose a reason for hiding this comment

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

LGTM

@mohanchen mohanchen merged commit 96e8c59 into deepmodeling:develop May 5, 2024
12 checks passed
@AsTonyshment AsTonyshment deleted the check_nlocal branch May 10, 2024 08:52
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.

Need to check NLOCAL first when reading wave function coefficients
2 participants