Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmaddison committed Jul 10, 2024
1 parent 287fe82 commit c70eea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion firedrake/adjoint_utils/blocks/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def solve_tlm(self):
tlm_dep = block_variable.tlm_value
if tlm_dep is not None:
tlm_rhs = tlm_rhs + ufl.derivative(expr, dep, tlm_dep)

x.tlm_value = None
if isinstance(tlm_rhs, int) and tlm_rhs == 0:
return
Expand Down
2 changes: 1 addition & 1 deletion firedrake/adjoint_utils/blocks/solving.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def solve_tlm(self):

tlm_rhs = 0
tlm_bcs = []
for block_variable in self.get_dependencies():
for block_variable in self.get_dependencies():
dep = block_variable.output
if dep == x.output:
continue
Expand Down

0 comments on commit c70eea9

Please sign in to comment.