]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug when calling reset() with ADOL-C tapeless number
authorJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 5 Oct 2018 13:40:12 +0000 (15:40 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 5 Oct 2018 13:40:12 +0000 (15:40 +0200)
source/differentiation/ad/ad_helpers.cc

index 60e4488adb61ef70cc57a9307da863ea60645b53..c50a2d92c374a703e1f73914f1efb101e307bf07 100644 (file)
@@ -449,7 +449,7 @@ namespace Differentiation
       // variables are created.
       if (AD::is_tapeless_ad_number<ad_type>::value)
         {
-          configure_tapeless_mode(n_independent_variables,
+          configure_tapeless_mode(new_n_independent_variables,
                                   false /*ensure_persistent_setting*/);
         }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.