We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 287e019 commit 287fe82Copy full SHA for 287fe82
firedrake/adjoint_utils/blocks/solving.py
@@ -332,10 +332,10 @@ def solve_tlm(self):
332
continue
333
tlm_dep = block_variable.tlm_value
334
if isinstance(dep, firedrake.DirichletBC):
335
- if tlm_value is None:
+ if tlm_dep is None:
336
tlm_bcs.append(dep.reconstruct(g=0))
337
else:
338
- tlm_bcs.append(tlm_value)
+ tlm_bcs.append(tlm_dep)
339
elif tlm_dep is not None:
340
if isinstance(dep, firedrake.MeshGeometry):
341
dep = firedrake.SpatialCoordinate(dep)
0 commit comments