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
|
||||
@ -348,15 +348,15 @@ int main(int argc, char *argv[])
|
||||
|
||||
Info<< "Target mesh size: " << meshTarget.nCells() << endl;
|
||||
|
||||
for (int procI=0; procI<nProcs; procI++)
|
||||
for (int proci=0; proci<nProcs; proci++)
|
||||
{
|
||||
Info<< nl << "Source processor " << procI << endl;
|
||||
Info<< nl << "Source processor " << proci << endl;
|
||||
|
||||
Time runTimeSource
|
||||
(
|
||||
Time::controlDictName,
|
||||
rootDirSource,
|
||||
caseDirSource/fileName(word("processor") + name(procI))
|
||||
caseDirSource/fileName(word("processor") + name(proci))
|
||||
);
|
||||
|
||||
#include "setTimeIndex.H"
|
||||
@ -429,15 +429,15 @@ int main(int argc, char *argv[])
|
||||
|
||||
Info<< "Source mesh size: " << meshSource.nCells() << endl;
|
||||
|
||||
for (int procI=0; procI<nProcs; procI++)
|
||||
for (int proci=0; proci<nProcs; proci++)
|
||||
{
|
||||
Info<< nl << "Target processor " << procI << endl;
|
||||
Info<< nl << "Target processor " << proci << endl;
|
||||
|
||||
Time runTimeTarget
|
||||
(
|
||||
Time::controlDictName,
|
||||
rootDirTarget,
|
||||
caseDirTarget/fileName(word("processor") + name(procI))
|
||||
caseDirTarget/fileName(word("processor") + name(proci))
|
||||
);
|
||||
|
||||
fvMesh meshTarget
|
||||
|
||||
@ -40,12 +40,12 @@ static const scalar perturbFactor = 1e-6;
|
||||
static label findCell(const Cloud<passiveParticle>& cloud, const point& pt)
|
||||
{
|
||||
label celli = -1;
|
||||
label tetFaceI = -1;
|
||||
label tetFacei = -1;
|
||||
label tetPtI = -1;
|
||||
|
||||
const polyMesh& mesh = cloud.pMesh();
|
||||
|
||||
mesh.findCellFacePt(pt, celli, tetFaceI, tetPtI);
|
||||
mesh.findCellFacePt(pt, celli, tetFacei, tetPtI);
|
||||
|
||||
if (celli >= 0)
|
||||
{
|
||||
@ -70,7 +70,7 @@ static label findCell(const Cloud<passiveParticle>& cloud, const point& pt)
|
||||
|
||||
const point perturbPt = (1-perturbFactor)*pt+perturbFactor*cc;
|
||||
|
||||
mesh.findCellFacePt(perturbPt, celli, tetFaceI, tetPtI);
|
||||
mesh.findCellFacePt(perturbPt, celli, tetFacei, tetPtI);
|
||||
|
||||
return celli;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user