dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #01118
Re: Dimension d in elasticity module
On Wed, Oct 05, 2005 at 02:58:24PM -0500, Anders Logg wrote:
> Johan, there is a comment in Elasticity.form:
>
> # Dimension (FFC should provide this)
> d = len(v)
>
> The proper way to do this is to ask the finite element:
>
> d = element.shapedim() # number of dimensions for Omega (2 or 3)
> d = element.tensordim(0) # number of vector components for functions
>
> I could make FFC add a line d = element.shapedim() automatically, but
> I don't think that's a good solution.
>
> /Anders
>
Ok, my bad. I only saw spacedim() and tensordim() which were not what
I wanted (the dimension of Omega). Thanks for clearing it up.
Johan
Follow ups
References