← Back to team overview

ufl team mailing list archive

[HG UFL] minor details

 

One or more new changesets pushed to the primary ufl repository.
A short summary of the last three changesets is included below.

changeset:   496:d0277a7178913b6aabfe2a61d587171b5fc194c8
tag:         tip
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Mon Jan 12 13:25:17 2009 +0100
files:       ROADMAP ufl/algorithms/forward_ad.py ufl/indexing.py
description:
minor details


changeset:   495:cf4de6795ca6c369314983e26bed0aa58e783e8d
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Mon Jan 12 11:07:12 2009 +0100
files:       test/indices.py test/test.py ufl/indexing.py
description:
Implemented support for implicit sums of tensor
expressions in Indexed, not only scalars.
This makes v.dx(i)[i] and A[i,:][i] valid
expressions. Altough these look a bit weird,
they are perfectly valid operations that
will be documented clearly using pen-and-paper
syntax.


changeset:   494:559b56c81d00b46a55906227572dec78f06fe207
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Sat Jan 10 18:22:59 2009 +0100
files:       ufl/algorithms/ad.py ufl/exproperators.py ufl/indexing.py ufl/tensors.py ufl/terminal.py
description:
Implemented index handling in f.evaluate(...),
and support for callables in argument mapping:

def N(x):
    return x[0]**2 + x[1]
f = Function(element)
a = f**2
b = a((1.0, 2.0), { f: N })

We can test a lot of things easier now.
It should also evaluate derivatives w.r.t. functions and variables.
Derivatives of (basis) functions are more tricky to do simply.

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/ufl