Closed CedricTravelletti closed 3 months ago
Lets wait for https://github.com/JuliaMolSim/AtomsCalculators.jl/pull/11 and see where this settles.
BTW: It's a bit weird your PRs always show these millions of commits if you only add a few things. Any idea what that could be ?
Yes, I know why there are so many commits: What is done in this PR (and in the other ones I submitted) is part of a cross-package effort.
What I mean is that the PR in DFTK.jl
is just a side effect of what we want to do in GeometryOptimization.jl
, but changes will also then ripple on to AtomsCalculators.jl
(and in the end we want to use everything in InverseDesign.jl
).
So things evolve in parallel and create a back and forth commit cascade before the final PR is settled.
Just pushed an update to get this compatible to AtomsCalculator 0.2. There is a key issue remaining: We are not able to benefit from reusing state in calls like energy_forces
or calculate((Energy(), Forces())
. This is due to some missing features in AtomsCalculators, which I don't have time to fix right now.
In short:
energy_forces
dispatches not to the low-level interface, hence no state-sharing is possible.I would still suggest we merge as is, just to have the update to 0.2 done and then proceed to fix the issues in AtomsCalculators.
See https://github.com/JuliaMolSim/AtomsCalculators.jl/issues/27
This introduces state updating in the calculator.
See this PR in GeometryOptimization.jl for a detailed discussion of why this is needed.