Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmaddison committed Jul 10, 2024
1 parent 287e019 commit 287fe82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firedrake/adjoint_utils/blocks/solving.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ def solve_tlm(self):
continue
tlm_dep = block_variable.tlm_value
if isinstance(dep, firedrake.DirichletBC):
if tlm_value is None:
if tlm_dep is None:
tlm_bcs.append(dep.reconstruct(g=0))
else:
tlm_bcs.append(tlm_value)
tlm_bcs.append(tlm_dep)
elif tlm_dep is not None:
if isinstance(dep, firedrake.MeshGeometry):
dep = firedrake.SpatialCoordinate(dep)
Expand Down

0 comments on commit 287fe82

Please sign in to comment.