Skip to content

Commit 95597bd

Browse files
committed
prev_hess
1 parent f98f588 commit 95597bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

atomate/qchem/firetasks/write_inputs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class WriteInputFromIOSet(FiretaskBase):
5454
"""
5555

5656
required_params = ["qchem_input_set"]
57-
optional_params = ["molecule", "qchem_input_params", "input_file", "write_to_dir"]
57+
optional_params = ["molecule", "qchem_input_params", "input_file", "write_to_dir", "prev_hess"]
5858

5959
def run_task(self, fw_spec):
6060
input_file = os.path.join(
@@ -134,6 +134,9 @@ def run_task(self, fw_spec):
134134
"No molecule present, add as an optional param or check fw_spec"
135135
)
136136
qcin.write(input_file)
137+
if self.get("prev_hess"):
138+
with zopen(os.path.join(os.path.dirname(input_file), "HESS"), "wt") as f:
139+
f.write(self.get("prev_hess"))
137140

138141

139142
@explicit_serialize

atomate/qchem/fireworks/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ def __init__(
622622
max_cores=">>max_cores<<",
623623
qchem_input_params=None,
624624
max_iterations=10,
625+
prev_hess=None,
625626
max_molecule_perturb_scale=0.3,
626627
linked=True,
627628
freq_before_opt=False,
@@ -703,6 +704,7 @@ def __init__(
703704
qchem_input_set="OptSet",
704705
input_file=input_file,
705706
qchem_input_params=qchem_input_params,
707+
prev_hess=prev_hess,
706708
)
707709
)
708710

0 commit comments

Comments
 (0)