← Back to team overview

dolfin team mailing list archive

[HG DOLFIN] Add assignment operator to Constant.

 

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

changeset:   6848:7f519a779475a9b8a4f0309a7cf7fe748890e9f5
tag:         tip
user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
date:        Tue Aug 25 13:16:02 2009 +0100
files:       dolfin/function/Constant.cpp dolfin/function/Constant.h dolfin/la/SLEPcEigenSolver.cpp scripts/compileforms
description:
Add assignment operator to Constant.


changeset:   6847:75486ffc9866523ee849b00dd16203a6a8f827ef
user:        "Johan Hake <hake@xxxxxxxxx>"
date:        Tue Aug 25 12:12:43 2009 +0200
files:       demo/pde/stokes/taylor-hood/python/demo.py
description:
Added example of use of deep and shallow copying of sub functions


changeset:   6846:c88c78dbfcfb2d87184cbac2e7533df4ad0d23aa
user:        "Johan Hake <hake@xxxxxxxxx>"
date:        Tue Aug 25 11:50:58 2009 +0200
files:       site-packages/dolfin/function.py
description:
Fix sub funciton logic in PyDOLFIN

  >>> v0 = u.sub(0,deepcopy=False)

v0 is a shallowed copied sub function, (deepcopy defaults to False)
and

  >>> v1 = u.sub(0, deepcopy=True)

is a deepcopied version.

The syntax for split is:

   >>> v, p = u.split()
   >>> v, p = u.split(deepcopy=False)
   >>> v, p = u.split(False)

(all equivalent) for two shallow copied sub functions and

   >>> v, p = u.split(deepcopy=True)
   >>> v, p = u.split(True)

(all equivalent) for the deepcopied versions.

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