DEBUG:UFL:No integrals left after transformation, returning empty form.
DEBUG:FFC:Reusing form from cache.
Trying to integrate expression of rank 1 with free indices ().
ERROR:UFL:Trying to integrate expression of rank 1 with free indices ().
---------------------------------------------------------------------------
UFLException Traceback (most recent call last)
<ipython-input-8-2aee7c487e15> in <module>()
28 return v
29 one = Constant(1)
---> 30 v = vert_integrate(u, ff, Q)
<ipython-input-8-2aee7c487e15> in vert_integrate(u, ff, Q)
23 bc = DirichletBC(Q, 0, ff, 2)
24 a = v * phi * dx
---> 25 L = u * phi * dx
26 v = Function(Q)
27 solve(a == L, v, bc)
/home/mwathen/Work/FEniCS/lib/python2.7/site-packages/ufl/integral.pyc in __rmul__(self, integrand)
267 if not is_true_ufl_scalar(integrand):
268 error("Trying to integrate expression of rank %d with free indices %r." \
--> 269 % (integrand.rank(), integrand.free_indices()))
270
271 # Is the measure in a state where multiplication is not allowed?
/home/mwathen/Work/FEniCS/lib/python2.7/site-packages/ufl/log.pyc in error(self, *message)
152 "Write error message and raise an exception."
153 self._log.error(*message)
--> 154 raise self._exception_type(self._format_raw(*message))
155
156 def begin(self, *message):
UFLException: Trying to integrate expression of rank 1 with free indices ().