← Back to team overview

ufl team mailing list archive

[HG UFL] Some comments.

 

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

changeset:   104:515856dae26a55ba8e9b27919d5d1a8ca86e3f4f
tag:         tip
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Thu May 15 20:28:21 2008 +0200
files:       ufl/new_transform.py ufl/output.py
description:
Some comments.

Made ufl_assert throw its own exception instead of calling ufl_error, shortens the call stack on exceptions.


changeset:   103:03c6bc2cb4b09e864ca69ae05d028043f9564cee
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Thu May 15 20:14:36 2008 +0200
files:       ufl/all.py ufl/base.py ufl/new_transform.py
description:
Bugfixes in new_transform, now ufl2ufl works as it should
(converts an expression to a new equivalent expression,
only for testing and as a template for other transformations).
If someone did read the previous version and was confused, try again :-)

Implemented crude ufl2latex(expression) function the same way.
Note that there is no precedence handling, so there will be
lots of parentheses, and some objects are not handled
(these will trigger an informative exception).


changeset:   102:1facb22cf9b49b7dda896bc5a1ef518c03359f03
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Fri May 09 15:25:25 2008 +0200
files:       scripts/ufl-analyse ufl/__init__.py ufl/utilities.py
description:
Moved load_forms function to ufl.utilities,
and use existing utilities to extract information
in ufl-analyse. Example output in current version:

martinal@martinal-znote:~/dev/fenics/ufl/demo$ ufl-analyse convection_jacobi.form
Loading form file 'convection_jacobi.form'

Found no errors in form 'b'.

Form: 'b'
Rank: 2
Number of coefficients: 1
Elements used:
VectorElement('Mixed', 'triangle', 1, 2)
Basisfunctions:
BasisFunction(VectorElement('Mixed', 'triangle', 1, 2), -2)
BasisFunction(VectorElement('Mixed', 'triangle', 1, 2), -1)
Coefficients:
Function(VectorElement('Mixed', 'triangle', 1, 2), None, 0)
Form representation:
Form([Integral('cell', 0, Dot(((v_-1) . (grad(w_0)) + (w_0) . (grad(v_-1))), v_-2))])

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