Skip to content
Snippets Groups Projects
Commit 41c95a77 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[bugfix] Go into recursion in indexpushdown transformation

parent 2f1e56fc
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ class IndexPushDown(MultiFunction):
def indexed(self, o):
expr, idx = o.ufl_operands
if isinstance(expr, uc.Sum):
terms = [uc.Indexed(term, idx) for term in get_operands(expr)]
terms = [uc.Indexed(self(term), idx) for term in get_operands(expr)]
return construct_binary_operator(terms, uc.Sum)
else:
# This is a normal indexed, we treat it as any other.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment