ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #01981
Named Functions
It would be useful if we could somehow associate names with mixed
functions, e.g.
P2 = VectorElement("Lagrange", "triangle", 2)
P1 = FiniteElement("Lagrange", "triangle", 1)
TH = P2 + P1
(u, p, "U") = Functions(TH)
so that in the DOLFIN-specific C++ wrapper code we can use
a.U = u;
to attach mixed functions rather than
a.w0 = u;
a.w1 = v;
etc.
which is error prone. Andy suggestions on a nice way to do this in the
FFC input? Will this be part of UFL?
Garth
Follow ups