1
// Copyright (C) 2007 Anders Logg.
2
// Licensed under the GNU LGPL Version 2.1.
4
// First added: 2007-01-30
5
// Last changed: 2007-05-16
7
#include <dolfin/log/log.h>
10
#include "MeshOrdering.h"
12
using namespace dolfin;
14
//-----------------------------------------------------------------------------
15
void MeshOrdering::order(Mesh& mesh)
17
message("Ordering mesh entities...");
20
const CellType& cell_type = mesh.type();
22
// Iterate over all cells and order the mesh entities locally
23
for (CellIterator cell(mesh); !cell.end(); ++cell)
25
cell_type.orderEntities(*cell);
28
//-----------------------------------------------------------------------------