Skip to content

Commit

Permalink
FIX: berny should respect the task_config
Browse files Browse the repository at this point in the history
  • Loading branch information
q-posev authored and loriab committed Aug 4, 2023
1 parent 3f69fad commit 2937d99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qcengine/procedures/berny.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def compute(
geom_qcng = input_data["initial_molecule"]
comput = {**input_data["input_specification"], "molecule": geom_qcng}
program = input_data["keywords"].pop("program")
task_config = config.dict()
trajectory = []
output_data = input_data.copy()
try:
Expand All @@ -67,7 +68,7 @@ def compute(
opt = berny.Berny(geom_berny, logger=log, **input_data["keywords"])
for geom_berny in opt:
geom_qcng["geometry"] = np.stack(geom_berny.coords * berny.angstrom)
ret = qcengine.compute(comput, program)
ret = qcengine.compute(comput, program, task_config=task_config)
if ret.success:
trajectory.append(ret.dict())
opt.send((ret.properties.return_energy, ret.return_result))
Expand Down

0 comments on commit 2937d99

Please sign in to comment.