Skip to content

Commit b88a5ec

Browse files
committed
Populate dFdm_cache
1 parent 3dc9af8 commit b88a5ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

firedrake/adjoint/blocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ def evaluate_adj_component(self, inputs, adj_inputs, block_variable, idx, prepar
233233
else:
234234
dFdm = -firedrake.derivative(self.lhs, c, trial_function)
235235
dFdm = firedrake.adjoint(dFdm)
236+
self._dFdm_cache[c] = dFdm
236237

237238
# Replace the form coefficients with checkpointed values.
238239
replace_map = self._replace_map(dFdm)

0 commit comments

Comments
 (0)