ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #00332
Re: - Fix bug in dofmap() for equal order mixed elements [...]
Quoting ffc@xxxxxxxxxx:
> Commit from logg (2005-09-26 17:02 CEST)
> ----------------
>
> - Fix bug in dofmap() for equal order mixed elements
> - Add compiler option -d debuglevel
>
The changes in dofmap.py seem to have broken elements with polynomial order > 2.
Things seem fine in v0.2.0. Below is the Poisson.form file and the error message.
Garth
#----------------------------------------------------
element = FiniteElement("Lagrange", "triangle", 3)
v = BasisFunction(element)
u = BasisFunction(element)
f = Function(element)
a = dot(grad(u), grad(v))*dx
L = f*v*dx
#----------------------------------------------------
Error message:
Traceback (most recent call last):
File "/usr/bin/ffc", line 107, in ?
main(sys.argv[1:])
File "/usr/bin/ffc", line 73, in main
execfile(outname, ns)
File "Poisson.py", line 29, in ?
element = FiniteElement("Lagrange", "triangle", 3)
File "/usr/lib/python2.4/site-packages/ffc/compiler/finiteelement.py", line
94, in __init__
self.dofmap = DofMap(self)
File "/usr/lib/python2.4/site-packages/ffc/compiler/dofmap.py", line 215, in
__init__
(declarations, data) = compute_dofmap(element, data)
File "/usr/lib/python2.4/site-packages/ffc/compiler/dofmap.py", line 174, in
compute_dofmap
declarations += [write_alignment(num_dims, dim, entity, data)]
File "/usr/lib/python2.4/site-packages/ffc/compiler/dofmap.py", line 81, in
write_alignment
data["alignment"] += 1
KeyError: 'alignment'
Follow ups
References