- edited description
Missing coverage for UFL preprocessing of derivatives of expressions
Issue #854
new
The case found by @nschloe should have a coverage in DOLFIN so that UFL issue 96 would not happen.
from dolfin import *
#parameters.form_compiler.representation = "quadrature" # Works
#parameters.form_compiler.representation = "tensor" # Works
#parameters.form_compiler.representation = "uflacs" # Fails
#parameters.form_compiler.representation = "tsfc" # Fails
mesh = UnitSquareMesh(10, 10)
V = FunctionSpace(mesh, 'P', 1)
v = TestFunction(V)
element = FiniteElement("P", mesh.ufl_cell(), 1)
p = Expression('2.71 * x[0]', element=element)
assemble(p.dx(0)*v*dx)
Comments (6)
-
reporter -
Wow, looks like a bug we don't want to have in a release. This is @martinal's field. Can you give us a direction if too busy, @martinal?
BTW, specifying a full element does not help either:
from dolfin import * mesh = UnitSquareMesh(10, 10) V = FunctionSpace(mesh, 'CG', 1) v = TestFunction(V) element = FiniteElement("P", mesh.ufl_cell(), 1) p = Expression('2.71 * x[0]', element=element) assemble(p.dx(0) * v * dx)
-
reporter - changed title to assemble integrand with derivatives: Invalid cell None.
-
- edited description
- changed component to tests
- changed title to Missing coverage for UFL preprocessing of derivatives of expressions
- removed milestone
-
assigned issue to
- marked as trivial
-
Thanks for reporting, @nschloe. The actual issue is now at https://bitbucket.org/fenics-project/ufl/issues/96.
-
- removed responsible
- Log in to comment