ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #00142
Suggestions for changes [...]
Commit from logg (2005-05-23 18:23 CEST)
----------------
Suggestions for changes
I updated the TODO list with two suggested changes for FFC.
Tell me what you think.
1. Projections
--------------
I'm thinking of adding projections to the language. A simple example:
P0 = FiniteElement("Discontinuous vector Lagrange", "tetrahedron", 0)
pi = Projection(P0)
pi would then be a projection onto piecewise constants.
This could be used to reduce the complexity of evaluating certain forms.
If w is a Function, one can replace w with its projection in a form:
a = pi(w)*u.dx(i)*v.dx(i)*dx
2. Change .dx() --> .Dx()
-------------------------
Ridg suggested changing the notation for derivatives from .dx() to .Dx()
to avoid confusion with the integration operator *dx. What do you think?
Poisson would then change from
a = u.dx(i)*v.dx(i)*dx
to
a = u.Dx(i)*v.Dx(i)*dx
ffc TODO 1.34