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 287fe82 commit c70eea9Copy full SHA for c70eea9
firedrake/adjoint_utils/blocks/function.py
@@ -139,7 +139,7 @@ def solve_tlm(self):
139
tlm_dep = block_variable.tlm_value
140
if tlm_dep is not None:
141
tlm_rhs = tlm_rhs + ufl.derivative(expr, dep, tlm_dep)
142
-
+
143
x.tlm_value = None
144
if isinstance(tlm_rhs, int) and tlm_rhs == 0:
145
return
firedrake/adjoint_utils/blocks/solving.py
@@ -326,7 +326,7 @@ def solve_tlm(self):
326
327
tlm_rhs = 0
328
tlm_bcs = []
329
- for block_variable in self.get_dependencies():
+ for block_variable in self.get_dependencies():
330
dep = block_variable.output
331
if dep == x.output:
332
continue
0 commit comments