Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: issues continuing of not converged #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
=======
History
=======
2025.2.7: Bugfix: issues continuing of not converged
* There was an error continuing if the user requested to continue if the
optimization did not converge.

2024.10.20 -- Improved citation handling

2024.10.15 -- Added various convergence metrics to results
Expand Down
4 changes: 4 additions & 0 deletions seamm_geometric/seamm_geometric.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ def run_geomeTRIC_optimizer(self, P, PP):
"transition": "transition" in P["target"].lower(),
"coordsys": coordsys,
}
cont = P["continue if not converged"]
if isinstance(cont, str) and cont == "yes" or isinstance(cont, bool) and cont:
kwargs["convergence"] = ["maxiter"]
kwargs["Converge_maxiter"] = True

convergence_formulas = self.metadata["convergence formulas"]

Expand Down
Loading