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

changeset:   6833:30ddf63b8a1e25a6234703f1d47736ab90602376
tag:         tip
user:        "Garth N. Wells <[email protected]>"
date:        Sat Aug 22 12:03:42 2009 +0100
files:       dolfin/fem/VariationalProblem.cpp dolfin/function/Function.cpp 
dolfin/function/Function.h dolfin/function/SpecialFunctions.h 
dolfin/function/SubFunctionData.h dolfin/function/dolfin_function.h 
dolfin/swig/dolfin_docstrings.i dolfin/swig/dolfin_headers.i
description:
Work on new sub Function logic.

The new logic is more consistent with conventions. Function::operator[](uint i) 
now returns a reference to the sub Function. A Function keeps track of its sub 
Functions. Therefore,

    Function& u0 = u[0];

and

   plot(u[0]);

do not involve copying a vector. u and u0 share the same vector. If a DofMap is 
renumbered after construction, the Function can make sure that all its sub 
Functions are modified accordingly. Likewise if the mesh is refined.

Assignment makes a deep copy, i.e. you will get a new copy of everything. 
Therefore with

  Function u0 = u[0];

a new vector will be created and u0 will not change when u changes.

What remains to be done is reseting the dof map for the reduced dimension of 
the subfunction and extracting vector components upon assignment. Eventually, 
for

  Function u0 = u[0];
  GenericVector& x = u0.vector();

the vector x will only contains components related to the sub function u0.


changeset:   6832:887eaeeb4e81b30cf5e2031c77bd2d77f1faed18
user:        "Garth N. Wells <[email protected]>"
date:        Fri Aug 21 18:00:56 2009 +0100
files:       dolfin/fem/DofMap.cpp
description:
Comment out duplicated code in DofMap.


changeset:   6831:da5b9081b7cbe9753b9ce833acffe0a9c6cac9e2
user:        "Garth N. Wells <[email protected]>"
date:        Fri Aug 21 17:23:38 2009 +0100
files:       dolfin/log/LogStream.cpp dolfin/log/LogStream.h 
dolfin/nls/NonlinearProblem.h
description:
dolfin::cout fix for 32 bit systems.

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to