diff --git a/applications/utilities/parallelProcessing/decomposePar/domainDecompositionDistribute.C b/applications/utilities/parallelProcessing/decomposePar/domainDecompositionDistribute.C index 3578d8df78..944853ad95 100644 --- a/applications/utilities/parallelProcessing/decomposePar/domainDecompositionDistribute.C +++ b/applications/utilities/parallelProcessing/decomposePar/domainDecompositionDistribute.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -39,328 +39,33 @@ void Foam::domainDecomposition::distributeCells() cpuTime decompositionTime; - - // See if any faces need to have owner and neighbour on same processor - // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - labelHashSet sameProcFaces; - - if (decompositionDict_.found("preservePatches")) - { - wordList pNames(decompositionDict_.lookup("preservePatches")); - - Info<< nl - << "Keeping owner of faces in patches " << pNames - << " on same processor. This only makes sense for cyclics." << endl; - - const polyBoundaryMesh& patches = boundaryMesh(); - - forAll(pNames, i) - { - const label patchI = patches.findPatchID(pNames[i]); - - if (patchI == -1) - { - FatalErrorIn("domainDecomposition::distributeCells()") - << "Unknown preservePatch " << pNames[i] - << endl << "Valid patches are " << patches.names() - << exit(FatalError); - } - - const polyPatch& pp = patches[patchI]; - - forAll(pp, i) - { - sameProcFaces.insert(pp.start() + i); - } - } - } - if (decompositionDict_.found("preserveFaceZones")) - { - wordList zNames(decompositionDict_.lookup("preserveFaceZones")); - - Info<< nl - << "Keeping owner and neighbour of faces in zones " << zNames - << " on same processor" << endl; - - const faceZoneMesh& fZones = faceZones(); - - forAll(zNames, i) - { - label zoneI = fZones.findZoneID(zNames[i]); - - if (zoneI == -1) - { - FatalErrorIn("domainDecomposition::distributeCells()") - << "Unknown preserveFaceZone " << zNames[i] - << endl << "Valid faceZones are " << fZones.names() - << exit(FatalError); - } - - const faceZone& fz = fZones[zoneI]; - - forAll(fz, i) - { - sameProcFaces.insert(fz[i]); - } - } - } - - - // Specified processor for owner and neighbour of faces - Map