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 unnecessary Pi deriv in tGGA energy #96

Merged
merged 4 commits into from
Jan 3, 2025
Merged

Conversation

jeanwsr
Copy link
Contributor

@jeanwsr jeanwsr commented Jan 3, 2025

Fix #94 .

For tGGA, the deriv passed to otpd is changed to ot.Pi_deriv, which is always 0. This saves about 50% time cost for large active space.

For ftGGA, ot.Pi_deriv is pointed to its dens_deriv . So nothing changed. I believe that's right since ftGGA do need Pi's higher derivatives.

@jeanwsr jeanwsr changed the title fix unnecessary Pi deriv fix unnecessary Pi deriv in tGGA energy Jan 3, 2025
Copy link
Collaborator

@MatthewRHermes MatthewRHermes left a comment

Choose a reason for hiding this comment

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

Thanks for the optimization!

@MatthewRHermes MatthewRHermes merged commit 33f8dc4 into pyscf:master Jan 3, 2025
4 checks passed
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.

Question about otpd evaluation
2 participants