← Back to team overview

dolfin team mailing list archive

Dimension d in elasticity module

 

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



Follow ups