From: Jean-Paul Pelteret Date: Mon, 20 Dec 2021 08:34:09 +0000 (+0100) Subject: FIx a bug in SD::BatchOptimizer::extract() X-Git-Tag: v9.4.0-rc1~699^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e87b4f6e906f708112bc247cb5aa096714b7e29;p=dealii.git FIx a bug in SD::BatchOptimizer::extract() --- diff --git a/source/differentiation/sd/symengine_optimizer.cc b/source/differentiation/sd/symengine_optimizer.cc index db0c0840bb..2a2fc84cb3 100644 --- a/source/differentiation/sd/symengine_optimizer.cc +++ b/source/differentiation/sd/symengine_optimizer.cc @@ -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); } }