Minimum example:
from dolfin import *
mesh = dolfin.UnitCubeMesh(10,10,10)
TS = TensorFunctionSpace(mesh, 'CG', 1)
Q = Function(TS)
project(dot(Q,Q), TS) # works
form = Q[i,j]*Q[j,k]
project(form, TS) # does not work, shape mismatch error
Is this a bug, or is it intentional (e.g. due to the way UFL is implemented)? In general, I would like to be able to use index notation with project
since my forms are fairly complex. (I realize project
is just a convenience function and I could reformulate this though.)