ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #00552
Re: ffc-0.3.1 version problem with demos
On Wed, 2006-03-29 at 06:57 -0500, osman b wrote:
> On Wednesday 29 March 2006 00:11, Anders Logg wrote:
> > On Tue, Mar 28, 2006 at 11:08:32PM -0500, osman b wrote:
> > > Hello,
> > > Demos Projection.py, and TensorWeightedPoisson.form fail with:
> > > ffc-0.3.1/src/demo> ffc Projection.form
> > > *** 'module' object has no attribute 'dims'
> > >
> > > rest work OK.
> >
> > Do you have the latest version of FIAT?
>
> FIAT-0.2.3
>
Try the latest FIAT (http://www.fenics.org/pub/software/fiat/snapshot/).
This should fix the problem.
Garth
> > Both demos work for me. Try adding the flag -d1 to get extra debugging
> > info:
> >
> > ffc -d 1 Projection.form
> >
> > What error message do you get?
> >
> > /Anders
> osman@linux:~/SRC/ffc-0.3.1/src/demo> ffc -d1 Projection.form
> This is FFC, the FEniCS Form Compiler, version 0.3.1.
> For further information, go to http://www/fenics.org/ffc/.
> Parsing Projection.form
> Output written to Projection.py
> Traceback (most recent call last):
> File "/usr/bin/ffc", line 124, in ?
> main(sys.argv[1:])
> File "/usr/bin/ffc", line 82, in main
> execfile(outname, ns)
> File "Projection.py", line 20, in ?
> P0 = FiniteElement("Discontinuous Lagrange", "triangle", 0)
> File "/usr/lib/python2.4/site-packages/ffc/compiler/finiteelement.py", line
> 75, in __init__
> self.element = DiscontinuousLagrange(self.fiat_shape, degree)
> File "/usr/lib/python2.4/site-packages/FIAT/DiscontinuousLagrange.py", line
> 87, in DiscontinuousLagrange
> if n == 0: return P0.P0( shape )
> File "/usr/lib/python2.4/site-packages/FIAT/P0.py", line 35, in __init__
> Udual = P0Dual( shape , U )
> File "/usr/lib/python2.4/site-packages/FIAT/P0.py", line 21, in __init__
> d = shapes.dims[ shape ]
> AttributeError: 'module' object has no attribute 'dims'
> osman@linux:~/SRC/ffc-0.3.1/src/demo>
Follow ups
References