dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #14985
[HG DOLFIN] Throw error if attempting to access non-const vector of a sub-function.
One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.
changeset: 6843:bcbcd5996a48f2b31f080cd9b714f17c8dc7c5ed
tag: tip
user: "Garth N. Wells <gnw20@xxxxxxxxx>"
date: Mon Aug 24 14:51:12 2009 +0100
files: dolfin/function/Function.cpp
description:
Throw error if attempting to access non-const vector of a sub-function.
changeset: 6842:4e1891827208fcab16bc207076618e6b4285aed6
user: "Garth N. Wells <gnw20@xxxxxxxxx>"
date: Mon Aug 24 14:46:15 2009 +0100
files: demo/pde/elasticity/cpp/main.cpp dolfin/fem/DofMap.cpp dolfin/fem/DofMap.h dolfin/function/Function.cpp dolfin/function/Function.h dolfin/function/FunctionSpace.cpp dolfin/function/FunctionSpace.h dolfin/function/SpecialFunctions.h
description:
Work on copying of sub functions.
Creating a Function u0
Function u0 = u[0];
npw invovles a deep copy, i.e. u0 will have its own vector which will be shorter than that of u, as it was before the recent re-design.
Recall that copies can be avoided by doing
Function& u0 = u[0];
changeset: 6841:857728077ba8b73b2f7bf9d918c7da62a958bb1d
user: "Johan Hake <hake@xxxxxxxxx>"
date: Mon Aug 24 12:26:53 2009 +0200
files: ChangeLog dolfin/swig/typemaps.i
description:
Fix in-typemap for uint
- Python2.6 introduced an incompatability wrt int typechecks in the
c-api, making function wanting a dolfin::uint complain, when handed a
numpy.XXint.
----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin