gmarkall / manycore_form_compiler

MCFC is deprecated. See https://code.launchpad.net/~grm08/ffc/pyop2
https://code.launchpad.net/~grm08/ffc/pyop2
GNU General Public License v3.0
3 stars 1 forks source link

Fix indexing #48

Closed gmarkall closed 12 years ago

gmarkall commented 12 years ago

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.