ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #01111
Re: FFC error
I'll take a look.
/Anders
On Thu, May 17, 2007 at 03:45:10PM +0200, Garth N. Wells wrote:
> When trying to compile a form file, I'm getting the error
>
> Computing tensor representation for term 0... *** dimensions too large.
> *** To get more information about this error, rerun ffc with the option -d1.
>
> Running with -d1,
>
> File
> "/usr/lib/python2.5/site-packages/ffc/compiler/representation/tensor/monomialintegration.py",
>
> line 54, in integrate
> A0 = __compute_product(psis, vscaling * monomial.numeric * weights)
> File
> "/usr/lib/python2.5/site-packages/ffc/compiler/representation/tensor/monomialintegration.py",
>
> line 268, in __compute_product
> A0 = numpy.transpose(A0, rearrangement)
> File "/usr/lib/python2.5/site-packages/numpy/core/fromnumeric.py",
> line 118, in transpose
> return transpose(axes)
> ValueError: dimensions too large.
>
> I was able to compile this form last weeks. Below is the form.
>
> Garth
>
>
>
> scalar1 = FiniteElement("Lagrange", "triangle", 1)
>
> r = TestFunction(scalar1)
> p1 = TrialFunction(scalar1)
>
> p0 = Function(scalar1)
> lam = Function(scalar1)
> FFF = Function(scalar1)
>
> stab = Function(scalar1)
> h = Constant("triangle")
>
> k = Constant("triangle")
> theta = Constant("triangle")
> dt = Constant("triangle")
>
> beta = mult(h,stab)
> SUPG = - beta*lam*k*dot(grad(p0),grad(r))
>
> L_saturation_stab = SUPG*lam*k*dot(grad(p0),grad(FFF))*dx
>
> L = L_saturation_stab
>
> _______________________________________________
> FFC-dev mailing list
> FFC-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/ffc-dev
Follow ups
References