dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #04366
Ordering of mesh entities
The ordering of mesh entities according to the manual has now been
implemented in DOLFIN (by Kristian).
I had planned to make the ordering automatic so that every mesh would
always be ordered according to the manual, but this turned out to be
unpractical. The logic for when to order and when not to order things
that are already ordered (to not add unnecessary overhead) was
non-trivial.
So, a DOLFIN mesh is ordered only when it has explicitly been ordered.
To order a mesh, simply do
mesh.order();
The new assembler will order meshes during assembly when necessary, in
particular when dealing with higher-order Lagrange elements where two
adjacent cells share dofs on common edges or facets.
This also means that we can remove all alignment() functions (no
longer needed when the mesh is ordered).
Try it out and report any problems.
/Anders