ENH: update fvMeshDistribute and domainDecomposition to use new

coupledPolyPatch constructor
This commit is contained in:
laurence
2012-12-11 17:07:12 +00:00
parent 3d49ababd4
commit 057eff0e59
2 changed files with 24 additions and 14 deletions

View File

@ -428,12 +428,12 @@ bool Foam::domainDecomposition::writeDecomposition()
: curProcessorPatchSizes[procPatchI] - subStarts[i]
);
//Info<< "From processor:" << procI << endl
// << " to processor:" << curNeighbourProcessors[procPatchI]
// << endl
// << " via patch:" << subPatchID[i] << endl
// << " start :" << curStart << endl
// << " size :" << size << endl;
// Info<< "From processor:" << procI << endl
// << " to processor:" << curNeighbourProcessors[procPatchI]
// << endl
// << " via patch:" << subPatchID[i] << endl
// << " start :" << curStart << endl
// << " size :" << size << endl;
if (subPatchID[i] == -1)
{
@ -454,9 +454,14 @@ bool Foam::domainDecomposition::writeDecomposition()
}
else
{
const coupledPolyPatch& pcPatch
= refCast<const coupledPolyPatch>
(
boundaryMesh()[subPatchID[i]]
);
// From cyclic
const word& referPatch =
boundaryMesh()[subPatchID[i]].name();
const word& referPatch = pcPatch.name();
procPatches[nPatches] =
new processorCyclicPolyPatch
@ -472,7 +477,8 @@ bool Foam::domainDecomposition::writeDecomposition()
procMesh.boundaryMesh(),
procI,
curNeighbourProcessors[procPatchI],
referPatch
referPatch,
pcPatch.transform()
);
}