From f80b3a793abec398078b7500873f816f484e8edf Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 20 Dec 2011 09:09:51 +0000 Subject: [PATCH] ENH: nonBlockingGaussSmoother: block as late as possible. renumberMesh: option for sorting proc cells last to benefit from this. --- .../manipulation/renumberMesh/renumberMesh.C | 172 +++++++---- .../renumberMesh/renumberMeshDict | 17 ++ src/OpenFOAM/Make/files | 1 + .../nonBlockingGaussSeidelSmoother.C | 266 ++++++++++++++++++ .../nonBlockingGaussSeidelSmoother.H | 120 ++++++++ 5 files changed, 524 insertions(+), 52 deletions(-) create mode 100644 src/OpenFOAM/matrices/lduMatrix/smoothers/nonBlockingGaussSeidel/nonBlockingGaussSeidelSmoother.C create mode 100644 src/OpenFOAM/matrices/lduMatrix/smoothers/nonBlockingGaussSeidel/nonBlockingGaussSeidelSmoother.H diff --git a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C index a8c18c0712..7e090fa30e 100644 --- a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C +++ b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C @@ -464,23 +464,6 @@ int main(int argc, char *argv[]) "Renumber mesh to minimise bandwidth" ); - argList::addOption - ( - "blockSize", - "block size", - "order cells into blocks (using decomposition) before ordering" - ); - argList::addBoolOption - ( - "orderPoints", - "order points into internal and boundary points" - ); - argList::addBoolOption - ( - "writeMaps", - "write cellMap, faceMap, pointMap in polyMesh/" - ); - # include "addRegionOption.H" # include "addOverwriteOption.H" # include "addTimeOptions.H" @@ -507,41 +490,6 @@ int main(int argc, char *argv[]) const bool readDict = args.optionFound("dict"); - - label blockSize = 0; - args.optionReadIfPresent("blockSize", blockSize, 0); - - if (blockSize > 0) - { - Info<< "Ordering cells into regions of size " << blockSize - << " (using decomposition);" - << " ordering faces into region-internal and region-external." << nl - << endl; - - if (blockSize < 0 || blockSize >= mesh.nCells()) - { - FatalErrorIn(args.executable()) - << "Block size " << blockSize << " should be positive integer" - << " and less than the number of cells in the mesh." - << exit(FatalError); - } - } - - const bool orderPoints = args.optionFound("orderPoints"); - if (orderPoints) - { - Info<< "Ordering points into internal and boundary points." << nl - << endl; - } - - const bool writeMaps = args.optionFound("writeMaps"); - - if (writeMaps) - { - Info<< "Writing renumber maps (new to old) to polyMesh." << nl - << endl; - } - const bool overwrite = args.optionFound("overwrite"); label band = getBand(mesh.faceOwner(), mesh.faceNeighbour()); @@ -551,6 +499,11 @@ int main(int argc, char *argv[]) << returnReduce(band, maxOp