← Back to team overview

dolfin team mailing list archive

[HG DOLFIN] Make FunctionSpaces cache subspaces.

 

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

changeset:   5450:b36222005c32e021258f50335f0da09725855c35
tag:         tip
user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
date:        Wed Dec 24 13:18:30 2008 +0000
files:       dolfin/function/FunctionSpace.cpp dolfin/function/FunctionSpace.h
description:
Make FunctionSpaces cache subspaces.

This means that FunctionSpace.extract_sub_space(..) will create a new sub space only if it hasn't already been created. It's now possble to do

  Function x, Function y;
  for(uint i=0; i<10; ++i)
  {
    x = U[0];
    y = U[1];
  }

Creating a SubSpace will still create a new sub space.


changeset:   5449:a8cf96f245f67020286d993cfe5681dffd52196b
user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
date:        Wed Dec 24 10:24:18 2008 +0000
files:       dolfin/function/FunctionSpace.cpp dolfin/function/FunctionSpace.h dolfin/function/SubSpace.cpp
description:
Return smart pointer for FunctionSpace::::extract_sub_space instead of a plain pointer.


changeset:   5448:e32d1fc3b23198e628a81a6d5cee01c2c31b1c82
user:        Anders Logg <logg@xxxxxxxxx>
date:        Tue Dec 23 12:26:07 2008 +0100
files:       demo/pde/nonlinear-poisson/python/demo.py
description:
Some initial edits in nonlinear demo. Unsure how we should
handle TimeDependent.

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