MeshRenumbering

class dolfin.cpp.mesh.MeshRenumbering

Bases: object

This class implements renumbering algorithms for meshes.

static renumber_by_color(mesh, coloring)

Renumber mesh entities by coloring. This function is currently restricted to renumbering by cell coloring. The cells (cell-vertex connectivity) and the coordinates of the mesh are renumbered to improve the locality within each color. It is assumed that the mesh has already been colored and that only cell-vertex connectivity exists as part of the mesh.

Arguments
mesh (Mesh)
Mesh to be renumbered.
coloring (numpy.array(int))
Mesh coloring type.
Returns
Mesh
thisown

The membership flag