← Back to team overview

dolfin team mailing list archive

Re: Dimension d in elasticity module

 

On Fri, Oct 07, 2005 at 01:00:15PM +0200, Johan Jansson wrote:

> Ok, my bad. I only saw spacedim() and tensordim() which were not what
> I wanted (the dimension of Omega). Thanks for clearing it up.

Perhaps there should be a vectordim() that returns the number of
vector components and gives an error if rank() > 1?

    rank() == 0	  :   vectordim() == 1
    rank() == 1   :   vectordim() == tensordim(0)
    rank() > 1    :   error

/Anders



Follow ups

References