In [1]:
from dolfin import *

In [44]:
mesh = UnitSquareMesh(1,1)

In [49]:
V = FunctionSpace(mesh,"CG",1)
Q = FunctionSpace(mesh,"N1curl",1)


DEBUG:UFL:No integrals left after transformation, returning empty form.
DEBUG:FFC:Reusing form from cache.
DEBUG:UFL:No integrals left after transformation, returning empty form.
DEBUG:FFC:Reusing form from cache.

In [51]:
dof = V.dofmap()


Out[51]:
array([0, 1, 2, 3], dtype=int32)

In [52]:
uele = V.ufl_element()
dele = V.dolfin_element()
dof=V.dofmap()

In [53]:
dof

In [59]:
Q.dofmap().cell_dofs(0)


Out[59]:
array([1, 2, 0], dtype=int32)

In [23]:
Edge = edges(mesh)

In [43]:
V.dofmap()


Out[43]:
<dolfin.cpp.fem.GenericDofMap; proxy of <Swig Object of type 'boost::shared_ptr< dolfin::GenericDofMap > *' at 0x112c68330> >