Closed blechta closed 7 years ago
These are probably easy to remove.
Reproducible example?
from ufl import *
from tsfc import compile_form
from coffee.plan import ASTKernel
element = FiniteElement("P", interval, 1)
u, v = TrialFunction(element), TestFunction(element)
a = inner(grad(u), grad(v))*dx
c = compile_form(a)
a = ASTKernel(c[0].ast)
a.plan_cpu(dict(optlevel='O2'))
print a.gencode()
Results in unused t3
.
I would say it makes some TSFC-generated variables unused and leaves them there.