Skip to content

Commit 78b0e5b

Browse files
authored
thanks to Oliver: remove modification of input to allow const
apply olivers proposed changes
1 parent a87f55d commit 78b0e5b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ADOL-C/src/fo_rev.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,7 @@ int int_reverse_safe(
724724
*Ares = 0.0;
725725
#else
726726
if (tape.in_nested_ctx()) {
727-
FOR_0_LE_l_LT_p {
728-
ARES_INC = LAGRANGETRANS(l, indexd);
729-
LAGRANGETRANS(l, indexd) = 0.0;
730-
}
727+
FOR_0_LE_l_LT_p { ARES_INC = LAGRANGETRANS(l, indexd); }
731728
} else {
732729
FOR_0_LE_l_LT_p ARES_INC = LAGRANGE(l, indexd);
733730
}

0 commit comments

Comments
 (0)