-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PwBaseWorkChain
: Set restart_mode
in parameters if parent_folder
Typically, if a user launches a `PwBaseWorkChain` with a `parent_folder` they want to restart from a previously completed but unconverged run. In this case the `CONTROL.restart_mode` parameter should be set to `from_scratch`. This used to be done automatically but was removed in commit cb32be5. Here we reinstate the behavior by calling `set_restart_type` to `RestartType.FULL` if the `parent_folder` is defined and the `CONTROL.restart_mode` hasn't already been set explicitly in the parameters to `from_scratch`. In this case, it was likely set by the caller and we don't want to silently override this.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters