FFC

QuadratureElement crashed when using a P2 element

Bug #491830 reported by Garth Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FFC
Fix Released
High
Kristian B. Ølgaard

Bug Description

The code

    element = FiniteElement("Lagrange", triangle, 2)
    QE = FiniteElement("Quadrature", triangle, 3)

    v = TestFunction(element)
    u = TrialFunction(element)
    u0 = Function(element)
    C = Function(QE)
    a = v.dx(i)*C*u.dx(i)*dx + v.dx(i)*2*u0*u*u0.dx(i)*dx

crashes with the message

    --- CHECK 1 ---
    Here I think there are four points (on the cell)
    self.__num_quad_points = 4
    ---------------

    Compiler stage 2: Computing form representation(s)
    --------------------------------------------------
      Computing quadrature representation.

    --- CHECK 3 ---
    This is where the check fails
    len(points) = 16
    self.__num_quad_points = 4
    ---------------

    Points must be equal to coordinates of quadrature points

    *** FFC: Points must be equal to coordinates of quadrature points
    *** FFC: To get more information about this error, rerun FFC with --debug.

I doesn't seem to work for any QuadratureFunction order.

Changed in ffc:
status: Confirmed → Fix Committed
Anders Logg (logg)
Changed in ffc:
status: Fix Committed → Fix Released
Changed in ffc:
milestone: 0.7.2 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.