Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile_elements fails for quadrilateral "HDiv Trace" elements #189

Open
jpdean opened this issue Jan 21, 2020 · 0 comments
Open

compile_elements fails for quadrilateral "HDiv Trace" elements #189

jpdean opened this issue Jan 21, 2020 · 0 comments

Comments

@jpdean
Copy link
Member

jpdean commented Jan 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant