mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user