From d5a9cbaa91f16663e9345877028ae5c8790d7faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20He=C3=9F?= <rene.hess@iwr.uni-heidelberg.de> Date: Fri, 24 Mar 2017 11:28:30 +0100 Subject: [PATCH] [bugfix] in jacobian accterm splitting --- python/dune/perftool/ufl/extract_accumulation_terms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/dune/perftool/ufl/extract_accumulation_terms.py b/python/dune/perftool/ufl/extract_accumulation_terms.py index cefc8275..33032376 100644 --- a/python/dune/perftool/ufl/extract_accumulation_terms.py +++ b/python/dune/perftool/ufl/extract_accumulation_terms.py @@ -153,10 +153,10 @@ def split_into_accumulation_terms(expr): if ma.restriction != restriction else ma.expr for ma in indexed_jac_args} - jac_expr = replace_expression(jac_expr, replacemap=replacement) + jac_accum_expr = replace_expression(jac_expr, replacemap=replacement) if not isinstance(jac_expr, Zero): - ret.append(AccumulationTerm(jac_expr, test_arg, indexmap, newi)) + ret.append(AccumulationTerm(jac_accum_expr, test_arg, indexmap, newi)) else: if not isinstance(replace_expr, Zero): ret.append(AccumulationTerm(replace_expr, test_arg, indexmap, newi)) -- GitLab