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