processorPolyPatch, processorCyclicPolyPatch: Rationalized the construction of the patch name

This change ensures that these patches are named consistently so that
they can be looked-up as required in e.g. patchMeanVelocityForce
This commit is contained in:
Henry Weller
2016-02-02 20:07:16 +00:00
parent 923f39a9f8
commit 8b9698ad43
13 changed files with 139 additions and 121 deletions

View File

@ -1018,11 +1018,10 @@ void Foam::autoLayerDriver::determineSidePatches
for (label patchI = nOldPatches; patchI < nPatches; patchI++)
{
label nbrProcI = patchToNbrProc[patchI];
word name =
"procBoundary"
+ Foam::name(Pstream::myProcNo())
+ "to"
+ Foam::name(nbrProcI);
word name
(
processorPolyPatch::newName(Pstream::myProcNo(), nbrProcI)
);
dictionary patchDict;
patchDict.add("type", processorPolyPatch::typeName);
@ -1031,11 +1030,6 @@ void Foam::autoLayerDriver::determineSidePatches
patchDict.add("nFaces", 0);
patchDict.add("startFace", mesh.nFaces());
//Pout<< "Adding patch " << patchI
// << " name:" << name
// << " between " << Pstream::myProcNo()
// << " and " << nbrProcI << endl;
label procPatchI = meshRefiner_.appendPatch
(
mesh,