From c1ac184893b77cda69d65944bd33f49f131bf7dc Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 9 Nov 2011 12:34:03 +0000 Subject: [PATCH] ENH: decomposePar: implemented keeping faceSet on single processor --- .../decomposePar/decomposeParDict | 4 +- .../domainDecompositionDistribute.C | 42 ++++++------------- 2 files changed, 15 insertions(+), 31 deletions(-) diff --git a/applications/utilities/parallelProcessing/decomposePar/decomposeParDict b/applications/utilities/parallelProcessing/decomposePar/decomposeParDict index c5b5c45135..b3270edb6b 100644 --- a/applications/utilities/parallelProcessing/decomposePar/decomposeParDict +++ b/applications/utilities/parallelProcessing/decomposePar/decomposeParDict @@ -24,13 +24,13 @@ numberOfSubdomains 2; // (makes sense only for cyclic patches) //preservePatches (cyclic_half0 cyclic_half1); -//- Keep all of faceZone on a single processor. This puts all cells +//- Keep all of faceSet on a single processor. This puts all cells // connected with a point, edge or face on the same processor. // (just having face connected cells might not guarantee a balanced // decomposition) // The processor can be -1 (the decompositionMethod chooses the processor // for a good load balance) or explicitly provided (upsets balance). -//singleProcessorFaceZones ((f0 -1)); +//singleProcessorFaceSets ((f0 -1)); //- Use the volScalarField named here as a weight for each cell in the diff --git a/applications/utilities/parallelProcessing/decomposePar/domainDecompositionDistribute.C b/applications/utilities/parallelProcessing/decomposePar/domainDecompositionDistribute.C index 726f907137..3578d8df78 100644 --- a/applications/utilities/parallelProcessing/decomposePar/domainDecompositionDistribute.C +++ b/applications/utilities/parallelProcessing/decomposePar/domainDecompositionDistribute.C @@ -29,6 +29,7 @@ License #include "cellSet.H" #include "regionSplit.H" #include "Tuple2.H" +#include "faceSet.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -110,11 +111,9 @@ void Foam::domainDecomposition::distributeCells() Map