← Back to team overview

ufl team mailing list archive

[HG UFL] Attempt at implementing MixedElement.extract_component for

 

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

changeset:   454:12ccc726c55348de78185810749bf89ef9e1f1bf
tag:         tip
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Fri Dec 19 19:18:48 2008 +0100
files:       ufl/finiteelement.py ufl/permutation.py
description:
Attempt at implementing MixedElement.extract_component for
mixed elements where value components are flattened
into a long vector, e.g. a tensor+vector+scalar element.


changeset:   453:958e2a23876e02195da0c702a6329047fb4a4c3b
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Thu Dec 18 23:25:55 2008 +0100
files:       ufl/finiteelement.py ufl/geometry.py
description:
Quickly sketched a minor idea:
With a Cell class we could do this:

  triangle = Cell("triangle")
  quadratic_triangle = Cell("triangle", 2)

  cell = triangle # we can predefine interval, triangle, tetrahedron, etc.
  element = FiniteElement("CG", cell, 1) # instead of domain2dim[domain], we can just do cell.dim()
  n = cell.n() # returns FacetNormal(domain), no change in other code
  x = cell.x()
  ...

The Cell class is implemented but not used.
Putting it to use instead of the domain string
will be a small task causing no problems in UFL.


changeset:   452:cbd0138213e95e43f9595d80390c2019eb119007
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Wed Dec 17 15:00:47 2008 +0100
files:       setup.py
description:
Update setup.py like Johannes did for UFC.

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