mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Standardized cell, patch, face and processor loop index names
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -88,16 +88,16 @@ int main(int argc, char *argv[])
|
||||
// Create the processor databases
|
||||
databases.setSize(nProcs);
|
||||
|
||||
forAll(databases, procI)
|
||||
forAll(databases, proci)
|
||||
{
|
||||
databases.set
|
||||
(
|
||||
procI,
|
||||
proci,
|
||||
new Time
|
||||
(
|
||||
Time::controlDictName,
|
||||
args.rootPath(),
|
||||
args.caseName()/fileName(word("processor") + name(procI))
|
||||
args.caseName()/fileName(word("processor") + name(proci))
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -128,11 +128,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (args.optionFound("processor"))
|
||||
{
|
||||
for (label procI=0; procI<nProcs; procI++)
|
||||
for (label proci=0; proci<nProcs; proci++)
|
||||
{
|
||||
fileName procPath
|
||||
(
|
||||
args.path()/(word("processor") + name(procI))
|
||||
args.path()/(word("processor") + name(proci))
|
||||
);
|
||||
|
||||
forAll(timeDirs, timeI)
|
||||
|
||||
@ -109,9 +109,9 @@ void Foam::channelIndex::walkOppositeFaces
|
||||
{
|
||||
const cell& ownCell = cells[mesh.faceOwner()[facei]];
|
||||
|
||||
label oppositeFaceI = ownCell.opposingFaceLabel(facei, faces);
|
||||
label oppositeFacei = ownCell.opposingFaceLabel(facei, faces);
|
||||
|
||||
if (oppositeFaceI == -1)
|
||||
if (oppositeFacei == -1)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Face:" << facei << " owner cell:" << ownCell
|
||||
@ -119,10 +119,10 @@ void Foam::channelIndex::walkOppositeFaces
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!blockedFace[oppositeFaceI])
|
||||
if (!blockedFace[oppositeFacei])
|
||||
{
|
||||
blockedFace[oppositeFaceI] = true;
|
||||
newFrontFaces.append(oppositeFaceI);
|
||||
blockedFace[oppositeFacei] = true;
|
||||
newFrontFaces.append(oppositeFacei);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -131,9 +131,9 @@ void Foam::channelIndex::walkOppositeFaces
|
||||
{
|
||||
const cell& neiCell = mesh.cells()[mesh.faceNeighbour()[facei]];
|
||||
|
||||
label oppositeFaceI = neiCell.opposingFaceLabel(facei, faces);
|
||||
label oppositeFacei = neiCell.opposingFaceLabel(facei, faces);
|
||||
|
||||
if (oppositeFaceI == -1)
|
||||
if (oppositeFacei == -1)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Face:" << facei << " neighbour cell:" << neiCell
|
||||
@ -141,10 +141,10 @@ void Foam::channelIndex::walkOppositeFaces
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!blockedFace[oppositeFaceI])
|
||||
if (!blockedFace[oppositeFacei])
|
||||
{
|
||||
blockedFace[oppositeFaceI] = true;
|
||||
newFrontFaces.append(oppositeFaceI);
|
||||
blockedFace[oppositeFacei] = true;
|
||||
newFrontFaces.append(oppositeFacei);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user