Subject: [UFL-dev] [HG UFL] Bugfixes in new_transform, now ufl2ufl works as it should

From: [email-masked] (UFL)
Date: Thu, 15 May 2008 20:14:32 +0200 (CEST)

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

changeset:   103:03c6bc2cb4b09e864ca69ae05d028043f9564cee
tag:         tip
user:        "Martin Sandve Alnæs <[email-masked]>"
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 <[email-masked]>"
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))])

changeset:   101:ee2a6caf47add23132e1356333cc2609a02d36b4
user:        "Martin Sandve Alnæs <[email-masked]>"
date:        Fri May 09 15:08:08 2008 +0200
files:       demo/H1norm.form demo/convection_jacobi.form demo/convection_vector.form demo/explicit_convection.form scripts/ufl-analyse setup.py
description:
Added script ufl-analyse which loads a form file,
extracts all defined forms, and prints information
about them. Doesn't do much useful now, but should
be extended to run all possible diagnostics as
we make them. Used the script to run demo forms
and correct a couple of bugs in them.

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