ffcx icon indicating copy to clipboard operation
ffcx copied to clipboard

compile_elements fails for quadrilateral "HDiv Trace" elements

Open jpdean opened this issue 4 years ago • 0 comments

Minimal failing example:

import ffc.codegeneration.jit
import ufl

cell = ufl.quadrilateral
element = ufl.FiniteElement("HDiv Trace", cell, 1)
compiled_element, module = ffc.codegeneration.jit.compile_elements([element])

The above fails at A = e.element.A in _evaluate_basis with AttributeError: 'HDivTrace' object has no attribute 'A'.

There appears to be a check

if isinstance(e, HDivTrace):
    return "Function not supported for Trace elements"

to prevent this occurring, but it obviously isn't working as intended.

jpdean avatar Jan 21 '20 11:01 jpdean