Standardized cell, patch and face 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
|
||||
@ -143,23 +143,23 @@ Foam::labelList Foam::structuredDecomp::decompose
|
||||
|
||||
// And extract
|
||||
bool haveWarned = false;
|
||||
forAll(finalDecomp, cellI)
|
||||
forAll(finalDecomp, celli)
|
||||
{
|
||||
if (!cellData[cellI].valid(deltaCalc.data()))
|
||||
if (!cellData[celli].valid(deltaCalc.data()))
|
||||
{
|
||||
if (!haveWarned)
|
||||
{
|
||||
WarningInFunction
|
||||
<< "Did not visit some cells, e.g. cell " << cellI
|
||||
<< " at " << mesh.cellCentres()[cellI] << endl
|
||||
<< "Did not visit some cells, e.g. cell " << celli
|
||||
<< " at " << mesh.cellCentres()[celli] << endl
|
||||
<< "Assigning these cells to domain 0." << endl;
|
||||
haveWarned = true;
|
||||
}
|
||||
finalDecomp[cellI] = 0;
|
||||
finalDecomp[celli] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
finalDecomp[cellI] = cellData[cellI].data();
|
||||
finalDecomp[celli] = cellData[celli].data();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user