Subject: [UFL-dev] [HG UFL] Updated demo files. Some were still missing 'forms' or using wrong form names.

From: [email-masked] (UFL)
Date: Mon, 6 Apr 2009 10:16:22 +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:   799:6e163dc3bab2bc5b193e61bebb189c08d7bc081f
tag:         tip
user:        "Martin Sandve Alnæs <[email-masked]>"
date:        Mon Apr 06 10:18:04 2009 +0200
files:       demo/ConvectionJacobi.ufl demo/ConvectionJacobi2.ufl demo/HyperElasticity.ufl demo/HyperElasticity1D.ufl demo/HyperElasticityWorkaround.ufl demo/MassAD.ufl demo/MixedElasticity.ufl demo/MixedPoisson2.ufl demo/PowAD.ufl demo/ProjectionSystem.ufl demo/SimpleDiff5.ufl demo/StiffnessAD.ufl ufl/algorithms/formtransformations.py ufl/formoperators.py
description:
Updated demo files. Some were still missing 'forms' or using wrong form names.
Added (temporarily) demo/HyperElasticityWorkaround.ufl, which compiles with FFC.
SFC uses 33 s to compile this while FFC spends 1:07 m.

changeset:   798:3362f4b3815288bfaf774d4f7c367f064c194d0e
user:        Anders Logg <[email-masked]>
date:        Mon Apr 06 09:10:58 2009 +0200
files:       demo/HyperElasticity.ufl demo/TupleNotation.ufl ufl/__init__.py ufl/algorithms/__init__.py ufl/algorithms/tuplenotation.py ufl/classes.py ufl/form.py ufl/formoperators.py ufl/integral.py
description:
Implement tuple notation, now in algorithms/tuplenotation.py.
Form compilers should use ufl.algorithms.as_form to convert from
tuple (or Form) to Form. I tried placing as_form in form.py but
this did not work due to some recursive imports. It's now in
tuplenotation.py. Here's how it's done in FFC:

    forms = []
    elements = []
    for object in objects:
        if isinstance(object, FiniteElementBase):
            elements.append(object)
        elif not object is None:
            forms.append(as_form(object))

changeset:   797:63dff9824c9bc4af9b6016a0c145fb8552a04b48
user:        "Martin Sandve Alnæs <[email-masked]>"
date:        Sat Apr 04 16:22:38 2009 +0200
files:       ufl/algorithms/transformations.py
description:
Bugfix.

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