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

Hellmann-Feynman stresses via ForwardDiff and custom rules #476

Merged
merged 52 commits into from
Jul 15, 2021

Conversation

niklasschmitz
Copy link
Collaborator

@niklasschmitz niklasschmitz commented Jul 8, 2021

This PR implements experimental support for Hellmann-Feynman stresses via ForwardDiff.
Coming from niklasschmitz#2 and #443

This does not include yet:

  • external code like libxc

TODO list

  • re-enable lattice cond check
  • symmetries
  • safer type promotion in compute_density
  • solve DummyInplace code duplication with requires
  • use silicon numbers from test/testcases.jl

Copy link
Member

@antoine-levitt antoine-levitt left a comment

Choose a reason for hiding this comment

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

Wonderful! Can we just merge as is or is the type piracy wrt ForwardDiff a problem?

test/stresses.jl Outdated Show resolved Hide resolved
Project.toml Outdated Show resolved Hide resolved
src/DFTK.jl Outdated Show resolved Hide resolved
src/densities.jl Outdated Show resolved Hide resolved
src/densities.jl Outdated Show resolved Hide resolved
src/densities.jl Outdated Show resolved Hide resolved
test/stresses.jl Outdated Show resolved Hide resolved
src/workarounds/forwarddiff_rules.jl Show resolved Hide resolved
src/workarounds/forwarddiff_rules.jl Outdated Show resolved Hide resolved
src/workarounds/forwarddiff_rules.jl Outdated Show resolved Hide resolved
src/workarounds/forwarddiff_rules.jl Outdated Show resolved Hide resolved
src/workarounds/forwarddiff_rules.jl Outdated Show resolved Hide resolved
@niklasschmitz niklasschmitz marked this pull request as draft July 13, 2021 08:34
src/densities.jl Outdated Show resolved Hide resolved
@niklasschmitz niklasschmitz marked this pull request as ready for review July 15, 2021 11:43
src/Model.jl Outdated Show resolved Hide resolved
src/Model.jl Outdated Show resolved Hide resolved
@mfherbst mfherbst enabled auto-merge (squash) July 15, 2021 12:09
@mfherbst mfherbst merged commit c6da218 into JuliaMolSim:master Jul 15, 2021
This was referenced Jul 15, 2021
@niklasschmitz
Copy link
Collaborator Author

niklasschmitz commented Jul 15, 2021

Thanks for the review @mfherbst @antoine-levitt !

@antoine-levitt
Copy link
Member

Thanks for the great work!

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