← Back to team overview

ffc team mailing list archive

bug in mixed elements

 

Hello,

I am trying to solve consolidation problem with Dolphin.  The following is my
simplified form file.

> u_elem=FiniteElement("Vector Lagrange", "triangle", 2)
> P_elem=FiniteElement("Lagrange", "triangle", 1)

> Element = u_elem + P_elem

> (u0, p0) = Functions(Element)
> (u1, p1)= Functions(Element)

> u1test = Function(u_elem)
> u0test = Function(u_elem)


> dpdt= p1 - p0

> dudt_mixed = u1 - u0

> #dudt = u1test - u0test

When I wanted to do operation on u1 and u0, I received this error.(I
didn't recieve any error when I did same thing for p1 and p0)

> TypeError: unsupported operand type(s) for -: 'list' and 'list'

But If I do same operation on variable which are defined based on ordianry
element, I don't receive such error.

Cheers,

-- 
Mehdi







Follow ups