mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: rename variable to avoid confusion with 'restrict' keyword
- considered an error by the PGI compiler
This commit is contained in:
committed by
Andrew Heather
parent
46a853bc80
commit
8b63d63444
@ -583,15 +583,15 @@ bool Foam::GAMGAgglomeration::checkRestriction
|
|||||||
labelList& newRestrict,
|
labelList& newRestrict,
|
||||||
label& nNewCoarse,
|
label& nNewCoarse,
|
||||||
const lduAddressing& fineAddressing,
|
const lduAddressing& fineAddressing,
|
||||||
const labelUList& restrict,
|
const labelUList& restriction,
|
||||||
const label nCoarse
|
const label nCoarse
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (fineAddressing.size() != restrict.size())
|
if (fineAddressing.size() != restriction.size())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "nCells:" << fineAddressing.size()
|
<< "nCells:" << fineAddressing.size()
|
||||||
<< " agglom:" << restrict.size()
|
<< " agglom:" << restriction.size()
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -611,7 +611,7 @@ bool Foam::GAMGAgglomeration::checkRestriction
|
|||||||
label own = lower[facei];
|
label own = lower[facei];
|
||||||
label nei = upper[facei];
|
label nei = upper[facei];
|
||||||
|
|
||||||
if (restrict[own] == restrict[nei])
|
if (restriction[own] == restriction[nei])
|
||||||
{
|
{
|
||||||
// coarse-mesh-internal face
|
// coarse-mesh-internal face
|
||||||
|
|
||||||
@ -640,9 +640,9 @@ bool Foam::GAMGAgglomeration::checkRestriction
|
|||||||
// Count number of regions/masters per coarse cell
|
// Count number of regions/masters per coarse cell
|
||||||
labelListList coarseToMasters(nCoarse);
|
labelListList coarseToMasters(nCoarse);
|
||||||
nNewCoarse = 0;
|
nNewCoarse = 0;
|
||||||
forAll(restrict, celli)
|
forAll(restriction, celli)
|
||||||
{
|
{
|
||||||
labelList& masters = coarseToMasters[restrict[celli]];
|
labelList& masters = coarseToMasters[restriction[celli]];
|
||||||
|
|
||||||
if (!masters.found(master[celli]))
|
if (!masters.found(master[celli]))
|
||||||
{
|
{
|
||||||
@ -678,9 +678,9 @@ bool Foam::GAMGAgglomeration::checkRestriction
|
|||||||
}
|
}
|
||||||
|
|
||||||
newRestrict.setSize(fineAddressing.size());
|
newRestrict.setSize(fineAddressing.size());
|
||||||
forAll(restrict, celli)
|
forAll(restriction, celli)
|
||||||
{
|
{
|
||||||
label coarseI = restrict[celli];
|
const label coarseI = restriction[celli];
|
||||||
|
|
||||||
label index = coarseToMasters[coarseI].find(master[celli]);
|
label index = coarseToMasters[coarseI].find(master[celli]);
|
||||||
newRestrict[celli] = coarseToNewCoarse[coarseI][index];
|
newRestrict[celli] = coarseToNewCoarse[coarseI][index];
|
||||||
|
|||||||
@ -490,7 +490,7 @@ public:
|
|||||||
labelList& newRestrict,
|
labelList& newRestrict,
|
||||||
label& nNewCoarse,
|
label& nNewCoarse,
|
||||||
const lduAddressing& fineAddressing,
|
const lduAddressing& fineAddressing,
|
||||||
const labelUList& restrict,
|
const labelUList& restriction,
|
||||||
const label nCoarse
|
const label nCoarse
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user