Skip to content

Commit

Permalink
EXT_RESTART section
Browse files Browse the repository at this point in the history
  • Loading branch information
cpignedoli committed Feb 10, 2024
1 parent 54f176c commit 1540a4c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions aiida_cp2k/utils/input_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,12 @@ def add_ext_restart_section(input_dict):
params = input_dict.get_dict()
# overwrite the complete EXT_RESTART section if present
params["EXT_RESTART"] = {"RESTART_FILE_NAME": "./parent_calc/aiida-1.restart"}
if params["GLOBAL"]["RUN_TYPE"] == "MD":
params["EXT_RESTART"]["RESTART_DEFAULT"] = ".TRUE."
params["EXT_RESTART"]["RESTART_COUNTERS"] = ".TRUE."
params["EXT_RESTART"]["RESTART_POS"] = ".TRUE."
params["EXT_RESTART"]["RESTART_VEL"] = ".TRUE."
params["EXT_RESTART"]["RESTART_CELL"] = ".TRUE."
params["EXT_RESTART"]["RESTART_THERMOSTAT"] = ".TRUE."
params["EXT_RESTART"]["RESTART_CONSTRAINT"] = ".FALSE."
return Dict(params)

0 comments on commit 1540a4c

Please sign in to comment.