mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: update fvMeshDistribute and domainDecomposition to use new
coupledPolyPatch constructor
This commit is contained in:
@ -428,12 +428,12 @@ bool Foam::domainDecomposition::writeDecomposition()
|
|||||||
: curProcessorPatchSizes[procPatchI] - subStarts[i]
|
: curProcessorPatchSizes[procPatchI] - subStarts[i]
|
||||||
);
|
);
|
||||||
|
|
||||||
//Info<< "From processor:" << procI << endl
|
// Info<< "From processor:" << procI << endl
|
||||||
// << " to processor:" << curNeighbourProcessors[procPatchI]
|
// << " to processor:" << curNeighbourProcessors[procPatchI]
|
||||||
// << endl
|
// << endl
|
||||||
// << " via patch:" << subPatchID[i] << endl
|
// << " via patch:" << subPatchID[i] << endl
|
||||||
// << " start :" << curStart << endl
|
// << " start :" << curStart << endl
|
||||||
// << " size :" << size << endl;
|
// << " size :" << size << endl;
|
||||||
|
|
||||||
if (subPatchID[i] == -1)
|
if (subPatchID[i] == -1)
|
||||||
{
|
{
|
||||||
@ -454,9 +454,14 @@ bool Foam::domainDecomposition::writeDecomposition()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
const coupledPolyPatch& pcPatch
|
||||||
|
= refCast<const coupledPolyPatch>
|
||||||
|
(
|
||||||
|
boundaryMesh()[subPatchID[i]]
|
||||||
|
);
|
||||||
|
|
||||||
// From cyclic
|
// From cyclic
|
||||||
const word& referPatch =
|
const word& referPatch = pcPatch.name();
|
||||||
boundaryMesh()[subPatchID[i]].name();
|
|
||||||
|
|
||||||
procPatches[nPatches] =
|
procPatches[nPatches] =
|
||||||
new processorCyclicPolyPatch
|
new processorCyclicPolyPatch
|
||||||
@ -472,7 +477,8 @@ bool Foam::domainDecomposition::writeDecomposition()
|
|||||||
procMesh.boundaryMesh(),
|
procMesh.boundaryMesh(),
|
||||||
procI,
|
procI,
|
||||||
curNeighbourProcessors[procPatchI],
|
curNeighbourProcessors[procPatchI],
|
||||||
referPatch
|
referPatch,
|
||||||
|
pcPatch.transform()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -961,11 +961,14 @@ void Foam::fvMeshDistribute::addProcPatches
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
const coupledPolyPatch& pcPatch
|
||||||
|
= refCast<const coupledPolyPatch>
|
||||||
|
(
|
||||||
|
mesh_.boundaryMesh()[referPatchID[bFaceI]]
|
||||||
|
);
|
||||||
|
|
||||||
// Processor boundary originating from cyclic
|
// Processor boundary originating from cyclic
|
||||||
const word& cycName = mesh_.boundaryMesh()
|
const word& cycName = pcPatch.name();
|
||||||
[
|
|
||||||
referPatchID[bFaceI]
|
|
||||||
].name();
|
|
||||||
|
|
||||||
const word patchName =
|
const word patchName =
|
||||||
"procBoundary"
|
"procBoundary"
|
||||||
@ -984,7 +987,8 @@ void Foam::fvMeshDistribute::addProcPatches
|
|||||||
mesh_.boundaryMesh(),
|
mesh_.boundaryMesh(),
|
||||||
Pstream::myProcNo(),
|
Pstream::myProcNo(),
|
||||||
nbrProc[bFaceI],
|
nbrProc[bFaceI],
|
||||||
cycName
|
cycName,
|
||||||
|
pcPatch.transform()
|
||||||
);
|
);
|
||||||
|
|
||||||
procPatchID[procI].insert
|
procPatchID[procI].insert
|
||||||
|
|||||||
Reference in New Issue
Block a user