Change the assignment of indices in the generated code. They were previously statically assigned based on the count of IndexSum nodes in the UFL AST, which is only going to work for the limited and simple set of forms that we are working with now.
In this branch, Indices are assigned based on the relevant UFL Index objects and their count in the AST.
Change the assignment of indices in the generated code. They were previously statically assigned based on the count of IndexSum nodes in the UFL AST, which is only going to work for the limited and simple set of forms that we are working with now.
In this branch, Indices are assigned based on the relevant UFL Index objects and their count in the AST.