← Back to team overview

ufl team mailing list archive

Re: [HG UFL] Implemented shape() in all classes.

 

On Fri, Aug 15, 2008 at 03:09:34PM +0200, Martin Sandve Alnæs wrote:
> 2008/8/15 Anders Logg <logg@xxxxxxxxx>:
> > On Fri, Aug 15, 2008 at 01:54:50PM +0200, UFL wrote:
> >> One or more new changesets pushed to the primary ufl repository.
> >> A short summary of the last three changesets is included below.
> >>
> >> changeset:   157:d0da2d48d30138a9faaaf377d5a2d29668b471b4
> >> tag:         tip
> >> user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
> >> date:        Fri Aug 15 13:46:04 2008 +0200
> >> files:       test/elements.py test/indices.py ufl/algebra.py ufl/base.py ufl/basisfunctions.py ufl/common.py ufl/differentiation.py ufl/finiteelement.py ufl/geometry.py ufl/indexing.py ufl/mathfunctions.py ufl/restriction.py ufl/tensoralgebra.py ufl/tensors.py ufl/variable.py
> >> description:
> >> Implemented shape() in all classes.
> >> Fixed some nasty bugs in Tensor as well.
> >> We should have some more extensive tests of this though.
> >
> > Has value_rank(), value_dimension() etc been removed?
> >
> 
> Yes.
> 
> I kept UFLObject.rank for now, but implemented it as "return
> len(self.shape())" in the baseclass and removed it from the
> subclasses. This way I didn't have to fix all rank checks yet.

ok, sounds good.

-- 
Anders


References