Commit 8b63d634 authored by Mark Olesen's avatar Mark Olesen Committed by Andrew Heather
Browse files

COMP: rename variable to avoid confusion with 'restrict' keyword

- considered an error by the PGI compiler
parent 46a853bc
......@@ -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
);
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment