← Back to team overview

dolfin team mailing list archive

[HG DOLFIN] Removed as_* and is_* from PETSc backend and enabled down_cast and has_type for PETSc backend in python interface.

 

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

changeset:   3990:7a95e09515a4d298b702dea2c5a89fb1c03c6262
tag:         tip
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Mon Apr 14 19:57:33 2008 +0200
files:       dolfin/la/PETScVector.cpp dolfin/la/PETScVector.h dolfin/swig/dolfin_la_post.i
description:
Removed as_* and is_* from PETSc backend and enabled down_cast and has_type for PETSc backend in python interface.


changeset:   3989:8ef95cba0138cef27340a80bc23d9a94b1b71e1e
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Mon Apr 14 13:55:53 2008 +0200
files:       dolfin/swig/dolfin_la_post.i
description:
Commented out petsc version of has_type.


changeset:   3988:dee1d3ba1f89f46067c5ace88c18b8eb3eea3811
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Mon Apr 14 11:49:21 2008 +0200
files:       dolfin/fem/DirichletBC.cpp dolfin/la/GenericTensor.h dolfin/la/PETScVector.cpp dolfin/la/uBlasVector.cpp dolfin/la/uBlasVector.h dolfin/swig/dolfin_la_post.i
description:
Added
  bool b = v.has_type<uBlasVector>();
and
  b = has_type(v, uBlasVector)
like with down_cast.

Improved down_cast in Python so you can also write
  u = down_cast(v)
which will iterate through all available types and pick the one that matches.

Removed as_* in uBlasVector.

(Some similar changes are left out for PETSc.)

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