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

SCF Workchain: New AiiDA feature - Finish convergence via monitors #200

Open
2 of 3 tasks
janssenhenning opened this issue Dec 14, 2022 · 0 comments
Open
2 of 3 tasks

Comments

@janssenhenning
Copy link
Contributor

janssenhenning commented Dec 14, 2022

AiiDA v2.2 was released yesterday and while looking over the changelog I noticed a feature that might be interesting especially for the SCF workchain, which is live calculation job monitoring

This allows to attach functions which can read the files on the remote computer and decide to take actions, while the job is still running

This can be useful for two scenarios:

  • Cancelling calculations that don't converge (either if it exceeds a certain distance or if the slope of distances is too shallow)
  • Converging with respect to quantities that the fleur code does not consider as convergence criteria, especially total energy or torques (for the FleurRelaxTorqueWorkChain). Atm this is handled after each fleur job is finished which might be too many iterations, wasting resources

There are interesting open questions with the second point

  • How would a monitor cancel a job and AIiDA still pick it up as a successful finish.
    • One idea could be for the monitor to create a flag file like JUDFT_NO_MORE_ITERATIONS, which would tell fleur to gracefully exit after finishing the next iteration. This requires fleur code changes (Added for the next fleur release)
    • Maybe the information which monitor cancelled the job could be passed through to take it into account
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant