Skip to content

Commit 287fe82

Browse files
committed
Fix
1 parent 287e019 commit 287fe82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firedrake/adjoint_utils/blocks/solving.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ def solve_tlm(self):
332332
continue
333333
tlm_dep = block_variable.tlm_value
334334
if isinstance(dep, firedrake.DirichletBC):
335-
if tlm_value is None:
335+
if tlm_dep is None:
336336
tlm_bcs.append(dep.reconstruct(g=0))
337337
else:
338-
tlm_bcs.append(tlm_value)
338+
tlm_bcs.append(tlm_dep)
339339
elif tlm_dep is not None:
340340
if isinstance(dep, firedrake.MeshGeometry):
341341
dep = firedrake.SpatialCoordinate(dep)

0 commit comments

Comments
 (0)