diff --git a/python/dune/perftool/ufl/extract_accumulation_terms.py b/python/dune/perftool/ufl/extract_accumulation_terms.py index cefc82751386f521d64ee66b4a3a9ae59353aff9..33032376b834843ceaf28c41e55e9b9f3ed70251 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))