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

Use DifferentationInterface instead of DiffResults #1057

Merged
merged 4 commits into from
Feb 7, 2025

Conversation

Technici4n
Copy link
Contributor

It's a bit nicer since the result struct doesn't need to be pre-allocated with the right dimensions.

Copy link
Member

@mfherbst mfherbst left a comment

Choose a reason for hiding this comment

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

All up for it, DifferentiationInterface is certainly the more modern way to do this.

We need to fix the tests though.

BTW in https://github.com/JuliaMolSim/DftFunctionals.jl we also use DiffResults extensively. May be good to replace it there, too (but there the allocations matter, so one has to be careful).

@Technici4n
Copy link
Contributor Author

OK, tests fixed now. 😄

@mfherbst mfherbst merged commit 78def6c into JuliaMolSim:master Feb 7, 2025
7 of 8 checks passed
@Technici4n Technici4n deleted the use-di branch February 7, 2025 19:43
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.

2 participants