From: Jean-Paul Pelteret Date: Fri, 5 Oct 2018 13:40:12 +0000 (+0200) Subject: Fix bug when calling reset() with ADOL-C tapeless number X-Git-Tag: v9.1.0-rc1~630^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edc205465a39d98393d46d32368bf68cedc3346e;p=dealii.git Fix bug when calling reset() with ADOL-C tapeless number --- 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*/); }