Skip to content

Commit bb8781a

Browse files
committed
Tidying
1 parent 4ed0833 commit bb8781a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pyadjoint/adjfloat.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ def evaluate_hessian_component(self, inputs, hessian_inputs, adj_inputs, block_v
103103
relevant_dependencies, prepared=None):
104104
hessian_input, = hessian_inputs
105105
adj_input, = adj_inputs
106-
val = 0.0
107-
if hessian_input is not None:
108-
val += self._operator.codegen(diff=(idx,))(*inputs) * hessian_input
106+
val = self._operator.codegen(diff=(idx,))(*inputs) * hessian_input
109107
if adj_input is not None:
110108
for idx1, dep in relevant_dependencies:
111109
tlm_input = dep.tlm_value

0 commit comments

Comments
 (0)