Skip to content

Commit

Permalink
PETSc/TAO API fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmaddison committed Sep 10, 2024
1 parent c244b7c commit 03d8384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyadjoint/optimization/tao_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ class TAOConvergenceError(Exception):
else:
# Same approach as in _make_reasons in firedrake/solving_utils.py,
# Firedrake master branch 57e21cc8ebdb044c1d8423b48f3dbf70975d5548
_tao_reasons = {getattr(PETSc.TAO.ConvergedReason, key): key
for key in dir(PETSc.TAO.ConvergedReason)
_tao_reasons = {getattr(PETSc.TAO.Reason, key): key
for key in dir(PETSc.TAO.Reason)
if not key.startswith("_")}


Expand Down

0 comments on commit 03d8384

Please sign in to comment.