assemble 0 vectors

Issue #44 invalid
Nico Schlömer created an issue

The code

from dolfin import *

mesh = UnitIntervalMesh(20)
V = FunctionSpace(mesh, 'CG', 1)

v = TestFunction(V)

f = zero() * v * dx
#f = 0 * v * dx
#f = 1 * v * dx

assemble(f)

fails to execute with

ufl.log.UFLException: Unable to extract common cell; missing cell definition in form or expression

if the form that is to be assembled is factually 0.

This are blueprints about this on launchpad, cf. https://blueprints.launchpad.net/ufl/+spec/annotate-zero-with-arguments https://blueprints.launchpad.net/dolfin/+spec/zero-form-righthand-side.

Comments (5)

  1. Log in to comment