← Back to team overview

ffc team mailing list archive

mixed elements broken

 

Mixed elements with more than two fields appear to be broken.

  C = FiniteElement("Lagrange", "triangle", 1)
  U = FiniteElement("Lagrange", "triangle", 1)
  E = FiniteElement("Lagrange", "triangle", 1)
  element = U + C + E

  (v0, v1, v2) = TestFunctions(element)

gives the error

  Traceback (most recent call last):
    File "/usr/bin/ffc", line 180, in <module>
      sys.exit(main(sys.argv[1:]))
    File "/usr/bin/ffc", line 107, in main
      execfile(outname, ns)
    File "test.py", line 15, in <module>
      (v0, v1, v2) = TestFunctions(element)
  ValueError: need more than 2 values to unpack

Garth


Follow ups