]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FIx a bug in SD::BatchOptimizer::extract() 13134/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Mon, 20 Dec 2021 08:34:09 +0000 (09:34 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Sun, 26 Dec 2021 18:20:44 +0000 (19:20 +0100)
source/differentiation/sd/symengine_optimizer.cc

index db0c0840bbc91e6dcc6a0166edc7ba5f40431784..2a2fc84cb305f6d1038359bd7198db5d31953728 100644 (file)
@@ -601,7 +601,7 @@ namespace Differentiation
                   new_map_expr.get_value().__str__())
                 {
                   map_dep_expr_vec_entry[func] = e.second;
-                  return evaluate(func);
+                  return extract(func, cached_evaluation);
                 }
             }
 

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.