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

[bugfix] recognize the shape of coefficients in dimension index aliasing

parent 295ad114
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,9 @@ class _DimensionIndexMapping(MultiFunction):
subelement = select_subelement(o.ufl_operands[0].ufl_element(), o.ufl_operands[1])
self.shape = len(subelement.value_shape())
def coefficient(self, o):
self.shape = len(o.ufl_element().value_shape())
def indexed(self, o):
self.call(o.ufl_operands[0])
for i in range(self.shape):
......
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