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 a possible compile error in module_lr/lr_spectrum.cpp #4672

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

maki49
Copy link
Collaborator

@maki49 maki49 commented Jul 12, 2024

(std::conj(X_full(ik, ipair)) * X_full(ik, ipair)).real() causes "expression must have class type" in @mohanchen 's environment.
It can be replaced by std::norm.

@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Jul 12, 2024
@mohanchen mohanchen merged commit af251df into deepmodeling:develop Jul 12, 2024
13 checks passed
@maki49 maki49 deleted the fixnorm branch July 15, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Refactor ABACUS codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants