mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: fix 'forAll (' -> 'forAll(' format (again)
This commit is contained in:
@ -90,7 +90,7 @@ cellShape create3DCellShape
|
|||||||
// make a list of outward-pointing faces
|
// make a list of outward-pointing faces
|
||||||
labelListList localFaces(faceLabels.size());
|
labelListList localFaces(faceLabels.size());
|
||||||
|
|
||||||
forAll (faceLabels, faceI)
|
forAll(faceLabels, faceI)
|
||||||
{
|
{
|
||||||
const label curFaceLabel = faceLabels[faceI];
|
const label curFaceLabel = faceLabels[faceI];
|
||||||
|
|
||||||
|
|||||||
@ -130,7 +130,7 @@ void Foam::domainDecomposition::decomposeMesh()
|
|||||||
procFaceAddressing_.setSize(nProcs_);
|
procFaceAddressing_.setSize(nProcs_);
|
||||||
|
|
||||||
// Internal faces
|
// Internal faces
|
||||||
forAll (neighbour, facei)
|
forAll(neighbour, facei)
|
||||||
{
|
{
|
||||||
if (cellToProc_[owner[facei]] == cellToProc_[neighbour[facei]])
|
if (cellToProc_[owner[facei]] == cellToProc_[neighbour[facei]])
|
||||||
{
|
{
|
||||||
@ -141,16 +141,16 @@ void Foam::domainDecomposition::decomposeMesh()
|
|||||||
|
|
||||||
// for all processors, set the size of start index and patch size
|
// for all processors, set the size of start index and patch size
|
||||||
// lists to the number of patches in the mesh
|
// lists to the number of patches in the mesh
|
||||||
forAll (procPatchSize_, procI)
|
forAll(procPatchSize_, procI)
|
||||||
{
|
{
|
||||||
procPatchSize_[procI].setSize(patches.size());
|
procPatchSize_[procI].setSize(patches.size());
|
||||||
procPatchStartIndex_[procI].setSize(patches.size());
|
procPatchStartIndex_[procI].setSize(patches.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
forAll (patches, patchi)
|
forAll(patches, patchi)
|
||||||
{
|
{
|
||||||
// Reset size and start index for all processors
|
// Reset size and start index for all processors
|
||||||
forAll (procPatchSize_, procI)
|
forAll(procPatchSize_, procI)
|
||||||
{
|
{
|
||||||
procPatchSize_[procI][patchi] = 0;
|
procPatchSize_[procI][patchi] = 0;
|
||||||
procPatchStartIndex_[procI][patchi] =
|
procPatchStartIndex_[procI][patchi] =
|
||||||
@ -167,7 +167,7 @@ void Foam::domainDecomposition::decomposeMesh()
|
|||||||
const unallocLabelList& patchFaceCells =
|
const unallocLabelList& patchFaceCells =
|
||||||
patches[patchi].faceCells();
|
patches[patchi].faceCells();
|
||||||
|
|
||||||
forAll (patchFaceCells, facei)
|
forAll(patchFaceCells, facei)
|
||||||
{
|
{
|
||||||
const label curProc = cellToProc_[patchFaceCells[facei]];
|
const label curProc = cellToProc_[patchFaceCells[facei]];
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ void Foam::domainDecomposition::decomposeMesh()
|
|||||||
const unallocLabelList& nbrPatchFaceCells =
|
const unallocLabelList& nbrPatchFaceCells =
|
||||||
pp.neighbPatch().faceCells();
|
pp.neighbPatch().faceCells();
|
||||||
|
|
||||||
forAll (patchFaceCells, facei)
|
forAll(patchFaceCells, facei)
|
||||||
{
|
{
|
||||||
const label curProc = cellToProc_[patchFaceCells[facei]];
|
const label curProc = cellToProc_[patchFaceCells[facei]];
|
||||||
const label nbrProc = cellToProc_[nbrPatchFaceCells[facei]];
|
const label nbrProc = cellToProc_[nbrPatchFaceCells[facei]];
|
||||||
@ -216,7 +216,7 @@ void Foam::domainDecomposition::decomposeMesh()
|
|||||||
List<DynamicList<DynamicList<label> > > interPatchFaces(nProcs_);
|
List<DynamicList<DynamicList<label> > > interPatchFaces(nProcs_);
|
||||||
|
|
||||||
// Processor boundaries from internal faces
|
// Processor boundaries from internal faces
|
||||||
forAll (neighbour, facei)
|
forAll(neighbour, facei)
|
||||||
{
|
{
|
||||||
label ownerProc = cellToProc_[owner[facei]];
|
label ownerProc = cellToProc_[owner[facei]];
|
||||||
label nbrProc = cellToProc_[neighbour[facei]];
|
label nbrProc = cellToProc_[neighbour[facei]];
|
||||||
@ -249,7 +249,7 @@ void Foam::domainDecomposition::decomposeMesh()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Processor boundaries from split cyclics
|
// Processor boundaries from split cyclics
|
||||||
forAll (patches, patchi)
|
forAll(patches, patchi)
|
||||||
{
|
{
|
||||||
if (isA<cyclicPolyPatch>(patches[patchi]))
|
if (isA<cyclicPolyPatch>(patches[patchi]))
|
||||||
{
|
{
|
||||||
@ -279,7 +279,7 @@ void Foam::domainDecomposition::decomposeMesh()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add faces with different owner and neighbour processors
|
// Add faces with different owner and neighbour processors
|
||||||
forAll (patchFaceCells, facei)
|
forAll(patchFaceCells, facei)
|
||||||
{
|
{
|
||||||
const label ownerProc = cellToProc_[patchFaceCells[facei]];
|
const label ownerProc = cellToProc_[patchFaceCells[facei]];
|
||||||
const label nbrProc = cellToProc_[nbrPatchFaceCells[facei]];
|
const label nbrProc = cellToProc_[nbrPatchFaceCells[facei]];
|
||||||
|
|||||||
@ -76,7 +76,7 @@ Foam::cyclicGAMGInterface::cyclicGAMGInterface
|
|||||||
|
|
||||||
label nCoarseFaces = 0;
|
label nCoarseFaces = 0;
|
||||||
|
|
||||||
forAll (localRestrictAddressing, ffi)
|
forAll(localRestrictAddressing, ffi)
|
||||||
{
|
{
|
||||||
label curMaster = -1;
|
label curMaster = -1;
|
||||||
label curSlave = -1;
|
label curSlave = -1;
|
||||||
@ -164,7 +164,7 @@ Foam::cyclicGAMGInterface::cyclicGAMGInterface
|
|||||||
if (owner())
|
if (owner())
|
||||||
{
|
{
|
||||||
// On master side, the owner addressing is stored in table of contents
|
// On master side, the owner addressing is stored in table of contents
|
||||||
forAll (contents, masterI)
|
forAll(contents, masterI)
|
||||||
{
|
{
|
||||||
SLList<label>& curNbrs = neighboursTable.find(contents[masterI])();
|
SLList<label>& curNbrs = neighboursTable.find(contents[masterI])();
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ Foam::cyclicGAMGInterface::cyclicGAMGInterface
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// On slave side, the owner addressing is stored in linked lists
|
// On slave side, the owner addressing is stored in linked lists
|
||||||
forAll (contents, masterI)
|
forAll(contents, masterI)
|
||||||
{
|
{
|
||||||
SLList<label>& curNbrs = neighboursTable.find(contents[masterI])();
|
SLList<label>& curNbrs = neighboursTable.find(contents[masterI])();
|
||||||
|
|
||||||
|
|||||||
@ -69,7 +69,7 @@ addToRunTimeSelectionTable
|
|||||||
//
|
//
|
||||||
// faceList masterFaces(pp.size());
|
// faceList masterFaces(pp.size());
|
||||||
//
|
//
|
||||||
// forAll (pp, faceI)
|
// forAll(pp, faceI)
|
||||||
// {
|
// {
|
||||||
// masterFaces[faceI] = pp[faceI].reverseFace();
|
// masterFaces[faceI] = pp[faceI].reverseFace();
|
||||||
// }
|
// }
|
||||||
@ -119,13 +119,13 @@ addToRunTimeSelectionTable
|
|||||||
//
|
//
|
||||||
// label noFiltPoints = 0;
|
// label noFiltPoints = 0;
|
||||||
//
|
//
|
||||||
// forAll (meshPoints_, pointI)
|
// forAll(meshPoints_, pointI)
|
||||||
// {
|
// {
|
||||||
// label curP = meshPoints_[pointI];
|
// label curP = meshPoints_[pointI];
|
||||||
//
|
//
|
||||||
// bool found = false;
|
// bool found = false;
|
||||||
//
|
//
|
||||||
// forAll (sharedPoints, sharedI)
|
// forAll(sharedPoints, sharedI)
|
||||||
// {
|
// {
|
||||||
// if (sharedPoints[sharedI] == curP)
|
// if (sharedPoints[sharedI] == curP)
|
||||||
// {
|
// {
|
||||||
@ -165,7 +165,7 @@ addToRunTimeSelectionTable
|
|||||||
// // Create a HashSet of the point labels for this patch
|
// // Create a HashSet of the point labels for this patch
|
||||||
// Map<label> patchPointSet(2*ppmp.size());
|
// Map<label> patchPointSet(2*ppmp.size());
|
||||||
//
|
//
|
||||||
// forAll (ppmp, ppi)
|
// forAll(ppmp, ppi)
|
||||||
// {
|
// {
|
||||||
// patchPointSet.insert(ppmp[ppi], ppi);
|
// patchPointSet.insert(ppmp[ppi], ppi);
|
||||||
// }
|
// }
|
||||||
@ -296,7 +296,7 @@ addToRunTimeSelectionTable
|
|||||||
// // Create a HashSet of the point labels for the patch
|
// // Create a HashSet of the point labels for the patch
|
||||||
// Map<label> patchPointSet(2*fmp.size());
|
// Map<label> patchPointSet(2*fmp.size());
|
||||||
//
|
//
|
||||||
// forAll (fmp, ppi)
|
// forAll(fmp, ppi)
|
||||||
// {
|
// {
|
||||||
// patchPointSet.insert(fmp[ppi], ppi);
|
// patchPointSet.insert(fmp[ppi], ppi);
|
||||||
// }
|
// }
|
||||||
|
|||||||
@ -1164,7 +1164,7 @@ Foam::labelList Foam::globalPoints::reverseMeshPoints
|
|||||||
|
|
||||||
faceList masterFaces(nbrPatch.size());
|
faceList masterFaces(nbrPatch.size());
|
||||||
|
|
||||||
forAll (nbrPatch, faceI)
|
forAll(nbrPatch, faceI)
|
||||||
{
|
{
|
||||||
masterFaces[faceI] = nbrPatch[faceI].reverseFace();
|
masterFaces[faceI] = nbrPatch[faceI].reverseFace();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -856,7 +856,7 @@ Foam::polyMesh::polyMesh
|
|||||||
|
|
||||||
// Warning: Patches can only be added once the face list is
|
// Warning: Patches can only be added once the face list is
|
||||||
// completed, as they hold a subList of the face list
|
// completed, as they hold a subList of the face list
|
||||||
forAll (boundaryFaces, patchI)
|
forAll(boundaryFaces, patchI)
|
||||||
{
|
{
|
||||||
dictionary patchDict(boundaryDicts[patchI]);
|
dictionary patchDict(boundaryDicts[patchI]);
|
||||||
|
|
||||||
|
|||||||
@ -932,7 +932,7 @@ void Foam::InteractionLists<ParticleType>::prepareParticlesToRefer
|
|||||||
|
|
||||||
IDLList<ParticleType>& particlesToRefer = referredParticles_[i];
|
IDLList<ParticleType>& particlesToRefer = referredParticles_[i];
|
||||||
|
|
||||||
forAll (realParticles, rM)
|
forAll(realParticles, rM)
|
||||||
{
|
{
|
||||||
const ParticleType& particle = *realParticles[rM];
|
const ParticleType& particle = *realParticles[rM];
|
||||||
|
|
||||||
@ -1188,7 +1188,7 @@ void Foam::InteractionLists<ParticleType>::receiveReferredData
|
|||||||
{
|
{
|
||||||
UIPstream str(domain, pBufs);
|
UIPstream str(domain, pBufs);
|
||||||
|
|
||||||
forAll (constructMap, i)
|
forAll(constructMap, i)
|
||||||
{
|
{
|
||||||
referredParticles_[constructMap[i]] = IDLList<ParticleType>
|
referredParticles_[constructMap[i]] = IDLList<ParticleType>
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user