QuadratureElement crashes mixed formulation
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
FFC | Status tracked in Trunk | |||||
Trunk |
Invalid
|
Medium
|
Kristian B. Ølgaard |
Bug Description
The following simple form will crash when compiled:
CG = FiniteElement("CG", triangle, 1)
quad = VectorElement(
element = CG + quad
v, Q = TestFunctions(
P = Function(CG)
L = inner(grad(v), grad(P))*dx
*** FFC: Points must be equal to coordinates of quadrature points
This is because the form is integrated using only 1 integration point, but the 'quad' element is 2nd order.
If I do:
quad = VectorElement(
or
P = Function(quad)
L = inner(grad(v), P)*dx
the form compiles fine.
In all cases the compiler also issues the following warning:
*** WARNING: Derivatives are not defined on a QuadratureElement,
even though no derivatives of any functions defined on a QE is used in the form.
Changed in ffc: | |
assignee: | nobody → Kristian B. Ølgaard (k.b.oelgaard) |
importance: | Low → Medium |
milestone: | none → 0.7.2 |
The form does no longer crash and appears to compile fine, but the warning is still issued.