Dear Users/Developers,
I’m trying to find a way to restart the QE calculation using the saved charge densities file. In the parent calculation, it was gzipped and stored by setting the filename in the additional_retrieve_list
. I’d like to make a fully automated restart by uploading the charge densities back to the HPC cluster and providing it in the new calculation inputs. Is there a way to do it in AIIDA? Many thanks for your help in advance! 
Hi @abmazitov
sorry for the delayed reply!
Yes, you can. A PwCalculation
supports the parent_folder
input which copies the content of an existing remote folder to the new directory to do the restart. However, your files are not on the remote anymore but rather in your local file repository. Hence, you would first need to upload it and create the corresponding RemoteData
. In order to keep track of the provenance, you can use the TransferCalculation
: How to work with data — AiiDA 2.6.3 documentation.
- Use the
TransferCalculation
to upload the charge density from the retrieved FolderData
of your existing QE calculations. You should ensure that the charge density is copied into the correct directory structure, which mimics the one of a QE calculation, i.e., into the out
sub directory (aiida-quantumespresso/src/aiida_quantumespresso/calculations/__init__.py at main · aiidateam/aiida-quantumespresso · GitHub)
- Use the created
RemoteData
as the parent_folder
input of the PwCalculation
for your restarts.
- You should of course also adjust the corresponding parameters in QE to do a restart.
Just as a comment for the future. Another useful concept that we use ourselves for the exact same purpose is stashing: Usage — AiiDA 2.6.3 documentation
In that case, you can just store the files on the remote, but in a more long term location. This avoids the necessity of retrieving and locally storing large files.
Finally, since you zipped the files, you could add a command to unzip in the prepend_text
(just as a comment, but probably you already know how to do it as you also zipped it previously).
This would be the general outline. I hope this helps, but don’t hesitate to reach out again in case you encounter any problems.
1 Like