← Back to team overview

dolfin team mailing list archive

Re: [HG dolfin] Change Point::x() to return value (not reference). SWIG warnings down to 25.

 

On Mon, Apr 16, 2007 at 08:21:21PM +0200, Garth N. Wells wrote:
> 
> Quoting DOLFIN <dolfin@xxxxxxxxxx>:
> 
> > One or more new changesets pushed to the primary DOLFIN repository.
> > A short summary of the last three changesets is included below.
> > 
> > changeset:   2867:4baa95b04429fde474e68cf81ce1e1252c5744a1
> > tag:         tip
> > user:        "Anders Logg <logg@xxxxxxxxx>"
> > date:        Mon Apr 16 20:31:47 2007 +0200
> > files:       src/kernel/la/dolfin/dolfin_la.h src/kernel/mesh/Cell.cpp
> > src/kernel/mesh/dolfin/Point.h
> > description:
> > Change Point::x() to return value (not reference). SWIG warnings down to 25.
> >
> 
> We use this to stretch meshes in a given direction. I guess we can add new
> functions to multiply the x, y or z coordinate by a scalar.
> 
> Garth

The Point class should be avoided for this if possible. It is
specialized to the case where there are three coordinates x, y, z for
each vertex. When moving vertices, it's better to call v.x() which
gives you the array of coordinates. That array can be modified.

/Anders



> > 
> > changeset:   2866:713604ab4cfa2930d96259ca3fd037f53689fdf9
> > user:        "Anders Logg <logg@xxxxxxxxx>"
> > date:        Mon Apr 16 19:14:34 2007 +0200
> > files:       src/kernel/la/dolfin/dolfin_la.h src/kernel/main/dolfin.h
> > src/kernel/parameter/dolfin/dolfin_parameter.h src/pydolfin/dolfin.i
> > src/pydolfin/dolfin_headers.h src/pydolfin/ignores.i src/pydolfin/renames.i
> > src/pydolfin/typemaps.i
> > description:
> > Further work on PyDOLFIN, warnings down to 28...
> > 
> > 
> > changeset:   2865:743e2816395e8d5ab81d5a081d6949c375490ba9
> > user:        "Anders Logg <logg@xxxxxxxxx>"
> > date:        Mon Apr 16 18:56:45 2007 +0200
> > files:       src/kernel/common/dolfin/dolfin_common.h
> > src/kernel/log/dolfin/dolfin_log.h src/kernel/ode/dolfin/dolfin_ode.h
> > src/kernel/quadrature/dolfin/dolfin_quadrature.h
> > src/pydolfin/dolfin_headers.h src/pydolfin/ignores.i
> > description:
> > Further swig fixes, warnings down to 40
> > 
> > 
> > ----------------------------------------------------------------------
> > 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
> > 


References