Skip to content

Commit 7f51b2a

Browse files
authored
Merge pull request #239 from jrmaddison/jrmaddison/tao_fix
2 parents 9de8712 + 5e5f13e commit 7f51b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyadjoint/optimization/tao_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def to_petsc(self, x, y):
123123
y_i._ad_to_petsc(vec=x_sub)
124124
else:
125125
raise TypeError(f"Unexpected type: {type(y_i)}")
126-
x_sub.restoreSubVector(iset, x_sub)
126+
x.restoreSubVector(iset, x_sub)
127127

128128

129129
def new_control_variable(reduced_functional, *, dual=False):

0 commit comments

Comments
 (0)