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 Psi(T*) #3056

Merged
merged 6 commits into from
Nov 5, 2023
Merged

Fix Psi(T*) #3056

merged 6 commits into from
Nov 5, 2023

Conversation

maki49
Copy link
Collaborator

@maki49 maki49 commented Oct 9, 2023

  • Fix: A nullptr-psi doesn't affect current usage, but will cause an error after a future call of fix_k().
  • Add a common pointer-constructor for Psi, supporting conversion between k-first and band-first (useful in LR-TDDFT Implementation #2460).
  • fix type-2 act interface: nbands is still needed to be passed in since it may be less than psi_in.get_nbands()

@maki49 maki49 changed the title Fix a nullptr in Psi(T*) Fix Psi(T*) Oct 10, 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.

I agree with this PR's changes related to Psi base class.
You would better add more annotations in this operator.h file to help other developers to follow your design.

@Qianruipku Qianruipku merged commit 31dedd1 into deepmodeling:develop Nov 5, 2023
11 checks passed
@maki49 maki49 deleted the fix_psi branch April 17, 2024 02:40
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.

3 participants