← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Fix bug in GenericVector assignment in Python.

 



Johan Hake wrote:
On Wednesday 19 August 2009 22:46:11 DOLFIN wrote:
One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.

changeset:   6811:3a975cd46e2d87ed05e436a773806a01a5c55eda
tag:         tip
user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
date:        Wed Aug 19 21:45:55 2009 +0100
files:       ChangeLog TODO dolfin/la/GenericVector.h
dolfin/swig/dolfin_la_get_set_items.i dolfin/swig/dolfin_la_post.i
description:
Fix bug in GenericVector assignment in Python.

Nice!

But I think it should just return and not return the assigned vector.


That's what I first had, but then combined the two lines. I thought that 'return self.assign(values)' would return whatever 'assign(values)' returns, which is probably void.

Garth

Johan

Cahn-Hilliard demo now runs in paralell via Python.


changeset:   6810:3d90a84c4a5ddb83e3201d10ab600fc9bf829819
parent:      6809:79e6512a42d5823ea4e04d68413ad57ca3c43623
parent:      6808:05580c81008b56857160fa0e143e39b2500bf964
user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
date:        Wed Aug 19 17:17:52 2009 +0100
files:
description:
merge.


changeset:   6809:79e6512a42d5823ea4e04d68413ad57ca3c43623
parent:      6807:9a6b7bf1e80da8ae051b669b46a84dbeac7b993f
user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
date:        Wed Aug 19 17:17:34 2009 +0100
files:       dolfin/swig/dolfin_la_get_set_items.i
description:
Minor formatting changes.

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev


References