dof_to_vertex_map

dolfin.cpp.fem.dof_to_vertex_map(space)

Return a map between dofs indices and vertex indices

Only works for FunctionSpace with dofs exclusively on vertices. For mixed FunctionSpaces vertex index is offset with the number of dofs per vertex.

In parallel the returned map maps both owned and unowned dofs (using local indices) thus covering all the vertices. Hence the returned map is an inversion of _vertex_to_dof_map_.

Arguments
space (FunctionSpace)
The FunctionSpace for what the dof to vertex map should be computed for
Returns
numpy.array(int)
The dof to vertex map