diff --git a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C index 64011258c6..3702cfe8ce 100644 --- a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C +++ b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C @@ -145,6 +145,7 @@ Usage #include "hexRef8Data.H" #include "regionProperties.H" #include "polyMeshTools.H" +#include "subsetAdjacency.H" using namespace Foam; @@ -194,21 +195,56 @@ tmp createScalarField } -// Calculate band of matrix -label getBand(const labelList& owner, const labelList& neighbour) +// Calculate band of mesh +// label getBand(const labelUList& owner, const labelUList& neighbour) +// { +// label bandwidth = 0; +// +// forAll(neighbour, facei) +// { +// const label width = neighbour[facei] - owner[facei]; +// +// if (bandwidth < width) +// { +// bandwidth = width; +// } +// } +// return bandwidth; +// } + + +// Calculate band and profile of matrix. Profile is scalar to avoid overflow +Tuple2 getBand +( + const CompactListList