← Back to team overview

ufl team mailing list archive

[HG UFL] Further free_indices/rank updates. Getting close to a good representation, next we need more extensive tests and summation evaluation algorithm.

 

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

changeset:   35:1286a65b258bbd3125137e518f894217803a41b8
tag:         tip
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Tue Mar 11 15:40:25 2008 +0100
files:       src/ufl/base.py src/ufl/differential.py src/ufl/form.py src/ufl/geometry.py src/ufl/tensoralgebra.py tests/wrongforms.py
description:
Further free_indices/rank updates. Getting close to a good representation, next we need more extensive tests and summation evaluation algorithm.


changeset:   34:b67535c564de76028399510fe6ed9cae0fadc68e
user:        martinal@localhost
date:        Tue Mar 11 01:32:02 2008 +0100
files:       src/ufl/base.py src/ufl/differential.py src/ufl/form.py src/ufl/tensoralgebra.py
description:
Fixed calls to uflobject.rank(), some stuff is broken.


changeset:   33:757d4c796b6ed7bc73f2045df6cbf3ab055c2157
user:        martinal@localhost
date:        Tue Mar 11 01:30:25 2008 +0100
files:       src/ufl/arguments.py src/ufl/base.py src/ufl/differential.py src/ufl/function.py src/ufl/geometry.py src/ufl/objects.py src/ufl/tensoralgebra.py
description:
Added integer member rank to all objects,
changed initialization of free_indices to
be independent of rank,
introduced helper functions is_true_scalar(foo),
is_scalar_valued(foo) and rank(foo) to be used
instead of referencing these variables directly.

A "true scalar" is a scalar valued expression
with no free indices, f.ex. is u[i]*v[j] not
a true scalar since it represents a set of scalars,
but it is still scalar valued and not a tensor.
(Assuming u,v vector expressions and i,j indices).

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