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

Atoms calculators: empty state by default. #958

Merged
merged 39 commits into from
Mar 2, 2024

Conversation

CedricTravelletti
Copy link
Contributor

The current implementation of the AtomsCalculators interface for DFTK has the calculator re-using its internal state by default on all computations.

This is misleading for the user, since, when using the calculator on different configuration of the system (say, under strain), the user should be able to directly call AtomsCalculators.potential_energy(system, calculator), without having to specify that the calculator should start with an empty state.

This PR modifies the behavior of AtomsCalculators.potential_energy and AtomsCalculators.forces
so that by default no previous state is used and the calculator starts on a fresh state.

CedricTravelletti and others added 30 commits November 30, 2023 15:02
@mfherbst mfherbst merged commit 653cfc5 into JuliaMolSim:master Mar 2, 2024
5 of 6 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.

2 participants