← Back to team overview

dolfin team mailing list archive

[HG DOLFIN] Improve handling of discrete functions in Python.

 

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

changeset:   3507:263167712fb4f28d0fc83986b2892da22b0676ba
tag:         tip
user:        "Anders Logg <logg@xxxxxxxxx>"
date:        Thu Jan 03 22:26:18 2008 +0100
files:       src/pydolfin/assemble.py
description:
Improve handling of discrete functions in Python.
Now, the following works:

  u = Function(element, mesh, Vector())

The vector can then be accessed when needed by u.vector().
For example

  solve(A, u.vector(), b)


changeset:   3506:145c5e827bda60676a47a681cb6906dfc33e991c
user:        "Anders Logg <logg@xxxxxxxxx>"
date:        Thu Jan 03 22:03:50 2008 +0100
files:       src/kernel/fem/dolfin/DofMap.h src/pydolfin/assemble.py
description:
Bug fix for creating Function from element + mesh + vector in Python
(need to remember dof_maps or it will be deleted).


changeset:   3505:b9e1a248a7e0fb462d909f8b2b3f6bf232d92782
user:        "Anders Logg <logg@xxxxxxxxx>"
date:        Thu Jan 03 14:17:55 2008 +0100
files:       src/kernel/fem/DirichletBC.cpp src/kernel/fem/dolfin/DirichletBC.h src/kernel/function/DiscreteFunction.cpp src/kernel/function/Function.cpp src/kernel/function/dolfin/DiscreteFunction.h src/kernel/function/dolfin/Function.h src/pydolfin/assemble.py
description:
Cleanup use of dof maps in Python interface (assembly.py) and
remove newly added constructors in Function, DiscreteFunction
and DirichletBC (not needed when using DofMapSet).

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