UFL

as_vector and subfunctions broken

Bug #747524 reported by Garth Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UFL
Confirmed
High
Unassigned

Bug Description

The below UFL code breaks. The problem was introduced in changeset 941,

   http://bazaar.launchpad.net/~ufl-core/ufl/main/revision/941

element = VectorElement("Lagrange", triangle, 1)
scalar = FiniteElement("Lagrange", triangle, 1)
f = Coefficient(element)

# Works
#vs = Coefficient(scalar)
#v0 = as_vector([vs, 0.0, 0.0])
#L = dot(f, v0)*dx

# Breaks
v = TestFunction(element)
v0 = as_vector([v[0], 0.0, 0.0])
L = dot(f, v0)*dx

Changed in ufl:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Garth Wells (garth-wells) wrote :

Looks like problem was introduced in

     ufl/algorithms/formtransformations.py

Revision history for this message
Marie Rognes (meg-simula) wrote :

This is the same issue as in Bug #676853

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.