From edc205465a39d98393d46d32368bf68cedc3346e Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Fri, 5 Oct 2018 15:40:12 +0200 Subject: [PATCH] Fix bug when calling reset() with ADOL-C tapeless number --- source/differentiation/ad/ad_helpers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/differentiation/ad/ad_helpers.cc b/source/differentiation/ad/ad_helpers.cc index 60e4488adb..c50a2d92c3 100644 --- a/source/differentiation/ad/ad_helpers.cc +++ b/source/differentiation/ad/ad_helpers.cc @@ -449,7 +449,7 @@ namespace Differentiation // variables are created. if (AD::is_tapeless_ad_number::value) { - configure_tapeless_mode(n_independent_variables, + configure_tapeless_mode(new_n_independent_variables, false /*ensure_persistent_setting*/); } -- 2.39.5