UFL Error Generating Form for a Q1 Element
Hi
I get the following error withh ffc when trying to generate the C++ header for a Q1 element.
In the ufl file, I have:
element = FiniteElement(
v = TestFunction(
u = TrialFunction(
a = inner(grad(u), grad(v))*dx
L = v*f*dx
The output of ffc -l dolfin ?.ufl is:
Compiler stage 1: Analyzing form
-------
Name: a
Rank: 2
Cell: <quadrilateral of degree 1>
Topological dimension: 2
Geometric dimension: 2
Number of facets: 4
Number of coefficients: 0
Number of cell integrals: 1
Number of exterior facet integrals: 0
Number of interior facet integrals: 0
Number of macro cell integrals: 0
Number of cell domains: 1
Number of exterior facet domains: 0
Number or interior facet domains: 0
Number of macro cell domains: 0
Arguments: [v_0, v_1]
Coefficients: []
Argument names: [v, u]
Coefficient names: []
Unique elements: CG1
Unique sub elements: CG1
Quadrature rule: default
Quadrature order: auto
Automatic selection of representation not implemented, defaulting to quadrature.
Integral quadrature degree is 0.
Traceback (most recent call last):
File "/home/
sys.
File "/home/
compile_
File "/home/
form, form_data = analyze_form(form, object_names, options)
File "/home/
form_
File "/home/
ffc_element = FFCFiniteElemen
File "/home/
ufl_
File "/home/
fiat_shape = ufl_domain2fiat
KeyError: 'quadrilateral'
What's the problem?
Ted
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Kristian B. Ølgaard
- Solved:
- Last query:
- Last reply: