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

How to resume DFT calculation #212

Closed
McAlexDudu opened this issue Aug 2, 2020 · 2 comments
Closed

How to resume DFT calculation #212

McAlexDudu opened this issue Aug 2, 2020 · 2 comments

Comments

@McAlexDudu
Copy link

DFT calculation will get unconverged every now and then, and when this happened, the calculation will stop and we have to restart all over. How to resume? any suggestion?

@YuuuXie
Copy link
Collaborator

YuuuXie commented Aug 2, 2020

Currently if you set write_model in otf module to 2 or 3, the GP model will be saved automatically, then you can load gp by

gp_model = GaussianProcess.from_file('filename')

Also, you can grab the positions of atoms where your calculation was interrupted, save it as an np.array of shape (n_atoms, 3), denoted as previous_pos.

Then in the otf setup, use

my_otf = OTF(prev_pos_init = previous_pos,
             gp = gp_model,
             <other arguments>)
my_otf.curr_step = <your last step number>
my_otf.run()

Above is a temporary solution. But we are also considering having a more simple interface for restarting otf, there was an old issue #49 here. We will add it recent days

@McAlexDudu
Copy link
Author

Currently if you set write_model in otf module to 2 or 3, the GP model will be saved automatically, then you can load gp by

gp_model = GaussianProcess.from_file('filename')

Also, you can grab the positions of atoms where your calculation was interrupted, save it as an np.array of shape (n_atoms, 3), denoted as previous_pos.

Then in the otf setup, use

my_otf = OTF(prev_pos_init = previous_pos,
             gp = gp_model,
             <other arguments>)
my_otf.curr_step = <your last step number>
my_otf.run()

Above is a temporary solution. But we are also considering having a more simple interface for restarting otf, there was an old issue #49 here. We will add it recent days

Thanks a lot, I will try it.

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

No branches or pull requests

2 participants