Non-informative error for non-supported elements
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
FFC |
Fix Committed
|
Undecided
|
Marie Rognes |
Bug Description
Hi guys,
Whenever I try to run any simulation with Argyris elements, I get the following error:
Traceback (most recent call last):
File "demo_poisson.py", line 41, in <module>
V = FunctionSpace(mesh, "ARG",5)
File "/maybehome/
FunctionSpa
File "/maybehome/
ufc_element, ufc_dofmap = jit(self.
File "/maybehome/
return local_jit(*args, **kwargs)
File "/maybehome/
return jit_compile(form, parameters=p, common_
File "/maybehome/
return jit_element(
File "/maybehome/
compiled_form, module, form_data, prefix = jit_form(form, parameters)
File "/maybehome/
common_
File "/maybehome/
ir = compute_
File "/maybehome/
for (i, e) in enumerate(
File "/maybehome/
num_
File "/maybehome/
return [len(entity_
KeyError: 0
This particular one was produced using the demo_poisson.py code with Argyris elements. The code is reproduced minimally below:
from dolfin import *
mesh = UnitSquare(32, 32)
V = FunctionSpace(mesh, "ARG",5)
def boundary(x):
return x[0] < DOLFIN_EPS or x[0] > 1.0 - DOLFIN_EPS
u0 = Constant(0.0)
bc = DirichletBC(V, u0, boundary)
u = TrialFunction(V)
v = TestFunction(V)
f = Expression(
g = Expression(
a = inner(grad(u), grad(v))*dx
L = f*v*dx + g*v*ds
u = Function(V)
solve(a == L, u, bc)
Is this a bug, or do I just not understand how Argyris elements work?
Many thanks,
Chris
affects: | dolfin → ffc |
Changed in ffc: | |
assignee: | nobody → Marie Rognes (meg-simula) |
Changed in ffc: | |
status: | New → Fix Committed |