From 78276e48af8a0b16a48dd48c732feb6e1712d0b8 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 25 Apr 2019 14:00:49 +0100 Subject: [PATCH] Porting: strip register keyword --- .../MRFPorousFoam/addImplicitMRFPorous.H | 2 +- src/ODE/ODESolvers/KRR4/KRR4.C | 22 +++---- src/ODE/ODESolvers/RK/RK.C | 2 +- src/ODE/ODESolvers/SIBS/SIBS.C | 12 ++-- src/ODE/ODESolvers/SIBS/SIMPR.C | 18 +++--- src/ODE/ODESolvers/SIBS/polyExtrapolate.C | 10 +-- .../coupledGaussSeidelPrecon.C | 24 +++---- .../simpleGeomDecomp/simpleGeomDecomp.C | 4 +- .../enrichedPatch/enrichedPatchPointPoints.C | 2 +- .../leastSquaresFaGrad/leastSquaresFaGrad.C | 4 +- .../edgeInterpolationScheme.C | 6 +- .../cfdTools/general/MRF/MRFZone.C | 8 +-- .../cfdTools/general/MRF/MRFZoneTemplates.C | 4 +- .../vectorLeastSquaresDivScheme.C | 6 +- .../leastSquaresGrad/leastSquaresGrad.C | 2 +- .../leastSquaresGrad/scalarLeastSquaresGrad.C | 2 +- .../fvMatrices/fvBlockMatrix/fvBlockMatrix.C | 2 +- .../fvPatches/constraint/ggi/ggiFvPatch.C | 4 +- .../biLinearFit/biLinearFitPolynomial.H | 2 +- .../cubicUpwindFit/cubicUpwindFitPolynomial.H | 2 +- .../schemes/linearFit/linearFitPolynomial.H | 2 +- .../quadraticFit/quadraticFitPolynomial.H | 2 +- .../quadraticLinearFitPolynomial.H | 2 +- .../quadraticLinearUpwindFitPolynomial.H | 2 +- .../quadraticUpwindFitPolynomial.H | 2 +- .../surfaceInterpolationScheme.C | 4 +- .../containers/Lists/FixedList/FixedListI.H | 22 +++---- .../containers/Lists/FixedList/FixedListIO.C | 4 +- src/foam/containers/Lists/List/List.C | 10 +-- src/foam/containers/Lists/List/ListIO.C | 4 +- src/foam/containers/Lists/List/ListLoopM.H | 10 +-- src/foam/containers/Lists/PtrList/PtrList.C | 4 +- src/foam/containers/Lists/UPtrList/UPtrList.C | 2 +- src/foam/db/IOstreams/Pstreams/IPstream.C | 6 +- src/foam/db/IOstreams/Pstreams/OPstream.C | 6 +- src/foam/db/IOstreams/Sstreams/OSstream.C | 10 +-- src/foam/db/IOstreams/Sstreams/readHexLabel.C | 2 +- src/foam/graph/curve/curve.C | 4 +- .../matrices/LUscalarMatrix/LUscalarMatrix.C | 28 ++++---- src/foam/matrices/Matrix/Matrix.C | 26 ++++---- src/foam/matrices/Matrix/MatrixIO.C | 16 ++--- .../BlockMatrixSelection.C | 36 +++++------ .../BlockLduMatrix/BlockLduMatrixATmul.C | 42 ++++++------ .../BlockLduMatrix/BlockLduMatrixDecouple.C | 64 +++++++++---------- .../BlockLduMatrixDecoupledHOps.C | 20 +++--- .../BlockLduMatrix/BlockLduMatrixHOps.C | 30 ++++----- .../BlockLduMatrix/BlockLduMatrixOperations.C | 60 ++++++++--------- .../BlockLduMatrix/scalarBlockLduMatrix.C | 62 +++++++++--------- .../BlockCholeskyPrecon/BlockCholeskyPrecon.C | 4 +- .../BlockGaussSeidelPrecon.C | 12 ++-- .../BlockILUC0Precon/BlockILUC0Precon.C | 34 +++++----- .../BlockILUC0Precon/scalarBlockILUC0Precon.C | 26 ++++---- .../BlockILUCpPrecon/BlockILUCpPrecon.C | 34 +++++----- .../BlockILUCpPrecon/scalarBlockILUCpPrecon.C | 26 ++++---- .../extendedLduAddressing.C | 2 +- .../lduMatrix/lduMatrix/lduMatrixATmul.C | 24 +++---- .../lduMatrix/lduMatrix/lduMatrixOperations.C | 14 ++-- .../lduMatrix/lduMatrix/lduMatrixTemplates.C | 6 +- .../DICPreconditioner/DICPreconditioner.C | 20 +++--- .../DILUPreconditioner/DILUPreconditioner.C | 36 +++++------ .../FDICPreconditioner/FDICPreconditioner.C | 22 +++---- .../diagonalPreconditioner.C | 8 +-- .../noPreconditioner/noPreconditioner.C | 4 +- .../lduMatrix/smoothers/DIC/DICSmoother.C | 12 ++-- .../lduMatrix/smoothers/DILU/DILUSmoother.C | 12 ++-- .../GaussSeidel/GaussSeidelSmoother.C | 28 ++++---- .../ggiSAMGInterface/ggiSAMGInterface.C | 6 +- .../matrices/lduMatrix/solvers/PBiCG/PBiCG.C | 8 +-- src/foam/matrices/lduMatrix/solvers/PCG/PCG.C | 8 +-- .../matrices/scalarMatrices/scalarMatrices.C | 20 +++--- .../scalarMatrices/scalarSquareMatrix.C | 18 +++--- .../scalarSquareMatrixTemplates.C | 20 +++--- src/foam/meshes/meshShapes/cell/cell.C | 2 +- src/foam/meshes/meshShapes/face/face.C | 8 +-- .../meshes/polyMesh/polyMeshFromShapeMesh.C | 2 +- .../PrimitivePatchMeshEdges.C | 2 +- src/foam/primitives/BlockCoeff/blockCoeffs.H | 2 +- src/foam/primitives/VectorN/DiagTensorNI.H | 4 +- .../primitives/VectorN/SphericalTensorN.H | 10 ++- src/foam/primitives/VectorN/VectorNI.H | 2 +- .../VectorN/expandContract/ExpandTensorNI.H | 40 ++++++------ .../primitives/strings/fileName/fileName.C | 2 +- .../primitives/strings/string/foamString.C | 8 +-- .../primitives/strings/string/foamStringI.H | 4 +- .../amg/amgPolicy/selectionAmgPolicy.C | 26 ++++---- .../lduPrecon/CholeskyPrecon/CholeskyPrecon.C | 6 +- src/lduSolvers/lduPrecon/ILU0/ILU0.C | 4 +- src/lduSolvers/lduPrecon/ILUC0/ILUC0.C | 34 +++++----- src/lduSolvers/lduPrecon/ILUCp/ILUCp.C | 34 +++++----- .../symGaussSeidelPrecon.C | 22 +++---- .../calculateMeshToMeshAddressing.C | 2 +- .../dirichletNeumann/dirichletNeumann.C | 2 +- .../iterativePenalty/iterativePenalty.C | 2 +- .../standardPenalty/standardPenalty.C | 2 +- .../leastSquaresSolidInterfaceGrad.C | 4 +- .../specie/thermo/janaf/janafThermo.C | 8 +-- .../specie/thermo/janaf/janafThermoI.H | 12 ++-- 97 files changed, 638 insertions(+), 630 deletions(-) diff --git a/applications/solvers/coupled/MRFPorousFoam/addImplicitMRFPorous.H b/applications/solvers/coupled/MRFPorousFoam/addImplicitMRFPorous.H index 5ba812f51..918bafa75 100644 --- a/applications/solvers/coupled/MRFPorousFoam/addImplicitMRFPorous.H +++ b/applications/solvers/coupled/MRFPorousFoam/addImplicitMRFPorous.H @@ -15,7 +15,7 @@ // Warning. Possible problem with a zone which is both MRF and porous // The solution is to do the loop below everywhere // Currently only inserting zones for efficiency. HJ, 18/Nov/2017 - register label cellI; + label cellI; forAll (mrfZones, mrfZoneI) { diff --git a/src/ODE/ODESolvers/KRR4/KRR4.C b/src/ODE/ODESolvers/KRR4/KRR4.C index d7737b890..845e97121 100644 --- a/src/ODE/ODESolvers/KRR4/KRR4.C +++ b/src/ODE/ODESolvers/KRR4/KRR4.C @@ -101,11 +101,11 @@ void Foam::KRR4::solve scalar h = hTry; - for (register label jtry=0; jtry::LUDecompose(a_, pivotIndices_); - for (register label i=0; i::LUBacksubstitute(a_, pivotIndices_, g1_); - for (register label i=0; i::LUBacksubstitute(a_, pivotIndices_, g2_); - for (register label i=0; i::LUBacksubstitute(a_, pivotIndices_, g3_); - for (register label i=0; i::LUBacksubstitute(a_, pivotIndices_, g4_); - for (register label i=0; i::LUBacksubstitute(a, pivotIndices, yEnd); - for (register label i=0; i::LUBacksubstitute(a, pivotIndices, yEnd); - for (register label i=0; i= 0; rowI--) + for (label rowI = nRows - 1; rowI >= 0; rowI--) { // lRow is equal to rowI scalar& curX = x[rowI]; @@ -129,7 +129,7 @@ void Foam::coupledGaussSeidelPrecon::reverseSweep fEnd = ownStartAddr[rowI + 1]; // Accumulate the owner product side - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { curX -= upper[curCoeff]*x[upperAddr[curCoeff]]; } @@ -138,7 +138,7 @@ void Foam::coupledGaussSeidelPrecon::reverseSweep curX /= diag[rowI]; // Distribute the neighbour side using current x - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { bPrime[upperAddr[curCoeff]] -= lower[curCoeff]*curX; } @@ -163,7 +163,7 @@ void Foam::coupledGaussSeidelPrecon::forwardSweepTranspose const label nRows = x.size(); label fStart, fEnd; - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { // lRow is equal to rowI scalar& curX = x[rowI]; @@ -176,7 +176,7 @@ void Foam::coupledGaussSeidelPrecon::forwardSweepTranspose fEnd = ownStartAddr[rowI + 1]; // Accumulate the owner product side - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { // Transpose multiplication. HJ, 19/Jan/2009 curX -= lower[curCoeff]*x[upperAddr[curCoeff]]; @@ -186,7 +186,7 @@ void Foam::coupledGaussSeidelPrecon::forwardSweepTranspose curX /= diag[rowI]; // Distribute the neighbour side using current x - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { // Transpose multiplication. HJ, 19/Jan/2009 bPrime[upperAddr[curCoeff]] -= upper[curCoeff]*curX; @@ -212,7 +212,7 @@ void Foam::coupledGaussSeidelPrecon::reverseSweepTranspose const label nRows = x.size(); label fStart, fEnd; - for (register label rowI = nRows - 1; rowI >= 0; rowI--) + for (label rowI = nRows - 1; rowI >= 0; rowI--) { // lRow is equal to rowI scalar& curX = x[rowI]; @@ -225,7 +225,7 @@ void Foam::coupledGaussSeidelPrecon::reverseSweepTranspose fEnd = ownStartAddr[rowI + 1]; // Accumulate the owner product side - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { // Transpose multiplication. HJ, 19/Jan/2009 curX -= lower[curCoeff]*x[upperAddr[curCoeff]]; @@ -235,7 +235,7 @@ void Foam::coupledGaussSeidelPrecon::reverseSweepTranspose curX /= diag[rowI]; // Distribute the neighbour side using current x - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { // Transpose multiplication. HJ, 19/Jan/2009 bPrime[upperAddr[curCoeff]] -= upper[curCoeff]*curX; diff --git a/src/decompositionMethods/decompositionMethods/simpleGeomDecomp/simpleGeomDecomp.C b/src/decompositionMethods/decompositionMethods/simpleGeomDecomp/simpleGeomDecomp.C index 6578c9ca5..e5658aafe 100644 --- a/src/decompositionMethods/decompositionMethods/simpleGeomDecomp/simpleGeomDecomp.C +++ b/src/decompositionMethods/decompositionMethods/simpleGeomDecomp/simpleGeomDecomp.C @@ -73,7 +73,7 @@ void Foam::simpleGeomDecomp::assignToProcessorGroup // one extra cell each for (j = 0; j < fstProcessorGroup; j++) { - for (register label k = 0; k < jumpb; k++) + for (label k = 0; k < jumpb; k++) { processorGroup[ind++] = j; } @@ -82,7 +82,7 @@ void Foam::simpleGeomDecomp::assignToProcessorGroup // and now to the `normal' processor groups for (; j::grad forAll(own, edgei) { - register label ownEdgeI = own[edgei]; - register label neiEdgeI = nei[edgei]; + label ownEdgeI = own[edgei]; + label neiEdgeI = nei[edgei]; Type deltaVsf = vsf[neiEdgeI] - vsf[ownEdgeI]; diff --git a/src/finiteArea/interpolation/edgeInterpolation/edgeInterpolationScheme/edgeInterpolationScheme.C b/src/finiteArea/interpolation/edgeInterpolation/edgeInterpolationScheme/edgeInterpolationScheme.C index 412efbc0f..5a9723d11 100644 --- a/src/finiteArea/interpolation/edgeInterpolation/edgeInterpolationScheme/edgeInterpolationScheme.C +++ b/src/finiteArea/interpolation/edgeInterpolation/edgeInterpolationScheme/edgeInterpolationScheme.C @@ -207,7 +207,7 @@ edgeInterpolationScheme::interpolate Field& sfi = sf.internalField(); - for (register label fi=0; fi::interpolate Field& sfi = sf.internalField(); - for (register label eI = 0; eI < P.size(); eI++) + for (label eI = 0; eI < P.size(); eI++) { // ZT, 22/Apr/2003 const tensorField& curT = mesh.edgeTransformTensors()[eI]; @@ -447,7 +447,7 @@ edgeInterpolationScheme::euclidianInterpolate Field& sfi = sf.internalField(); - for (register label eI = 0; eI < P.size(); eI++) + for (label eI = 0; eI < P.size(); eI++) { sfi[eI] = lambda[eI]*vfi[P[eI]] + (1 - lambda[eI])*vfi[N[eI]]; } diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZone.C b/src/finiteVolume/cfdTools/general/MRF/MRFZone.C index b357cc314..537c5fc5e 100644 --- a/src/finiteVolume/cfdTools/general/MRF/MRFZone.C +++ b/src/finiteVolume/cfdTools/general/MRF/MRFZone.C @@ -147,7 +147,7 @@ void Foam::MRFZone::setMRFFaces() labelList nIncludedFaces(patches.size(), 0); labelList nExcludedFaces(patches.size(), 0); - register label faceI; + label faceI; forAll (patches, patchi) { @@ -367,7 +367,7 @@ void Foam::MRFZone::calcMeshVelocity() const ); // Calculate mesh velocity for all moving faces - register label faceI, patchFaceI; + label faceI, patchFaceI; scalarField& meshVelIn = meshVel.internalField(); @@ -714,7 +714,7 @@ void Foam::MRFZone::meshPhi { const surfaceScalarField& meshVel = meshVelocity(); - register label faceI, patchFaceI; + label faceI, patchFaceI; scalarField& phiIn = phi.internalField(); const scalarField& meshVelIn = meshVel.internalField(); @@ -757,7 +757,7 @@ void Foam::MRFZone::correctBoundaryVelocity(volVectorField& U) const const vector& origin = origin_.value(); const vector rotVel = Omega(); - register label patchFaceI; + label patchFaceI; // Included patches forAll (includedFaces_, patchI) diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C b/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C index 3e5f178a1..be1817d5f 100644 --- a/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C +++ b/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C @@ -41,7 +41,7 @@ void Foam::MRFZone::relativeRhoFlux // HJ, 6/Jun/2017 const surfaceScalarField& meshVel = meshVelocity(); - register label faceI, patchFaceI; + label faceI, patchFaceI; // Internal faces scalarField& phiIn = phi.internalField(); @@ -94,7 +94,7 @@ void Foam::MRFZone::absoluteRhoFlux // HJ, 6/Jun/2017 const surfaceScalarField& meshVel = meshVelocity(); - register label faceI, patchFaceI; + label faceI, patchFaceI; // Internal faces scalarField& phiIn = phi.internalField(); diff --git a/src/finiteVolume/finiteVolume/divSchemes/leastSquaresDivScheme/vectorLeastSquaresDivScheme.C b/src/finiteVolume/finiteVolume/divSchemes/leastSquaresDivScheme/vectorLeastSquaresDivScheme.C index 138dfcbd8..e6c73042f 100644 --- a/src/finiteVolume/finiteVolume/divSchemes/leastSquaresDivScheme/vectorLeastSquaresDivScheme.C +++ b/src/finiteVolume/finiteVolume/divSchemes/leastSquaresDivScheme/vectorLeastSquaresDivScheme.C @@ -98,7 +98,7 @@ tmp > leastSquaresDivScheme::fvmUDiv const vectorField& neiLsIn = neiLs.internalField(); // const scalarField& wIn = weights.internalField(); - register label owner, neighbour; + label owner, neighbour; forAll (nei, faceI) { @@ -231,8 +231,8 @@ tmp > leastSquaresDivScheme::fvmUDiv forAll (nei, faceI) { - register label owner = own[faceI]; - register label neighbour = nei[faceI]; + label owner = own[faceI]; + label neighbour = nei[faceI]; u[faceI] = cellVIn[owner]*ownLsIn[faceI]*fluxIn[faceI]; l[faceI] = cellVIn[neighbour]*neiLsIn[faceI]*fluxIn[faceI]; diff --git a/src/finiteVolume/finiteVolume/gradSchemes/leastSquaresGrad/leastSquaresGrad.C b/src/finiteVolume/finiteVolume/gradSchemes/leastSquaresGrad/leastSquaresGrad.C index 4670f7cd6..e4dc336c1 100644 --- a/src/finiteVolume/finiteVolume/gradSchemes/leastSquaresGrad/leastSquaresGrad.C +++ b/src/finiteVolume/finiteVolume/gradSchemes/leastSquaresGrad/leastSquaresGrad.C @@ -104,7 +104,7 @@ leastSquaresGrad::calcGrad const vectorField& ownLsIn = ownLs.internalField(); const vectorField& neiLsIn = neiLs.internalField(); - register label ownFaceI, neiFaceI; + label ownFaceI, neiFaceI; forAll (own, facei) { diff --git a/src/finiteVolume/finiteVolume/gradSchemes/leastSquaresGrad/scalarLeastSquaresGrad.C b/src/finiteVolume/finiteVolume/gradSchemes/leastSquaresGrad/scalarLeastSquaresGrad.C index 144830693..ca202189a 100644 --- a/src/finiteVolume/finiteVolume/gradSchemes/leastSquaresGrad/scalarLeastSquaresGrad.C +++ b/src/finiteVolume/finiteVolume/gradSchemes/leastSquaresGrad/scalarLeastSquaresGrad.C @@ -94,7 +94,7 @@ tmp > leastSquaresGrad::fvmGrad const vectorField& ownLsIn = ownLs.internalField(); const vectorField& neiLsIn = neiLs.internalField(); - register label owner, neighbour; + label owner, neighbour; forAll (nei, faceI) { diff --git a/src/finiteVolume/fvMatrices/fvBlockMatrix/fvBlockMatrix.C b/src/finiteVolume/fvMatrices/fvBlockMatrix/fvBlockMatrix.C index 8cf82a0db..9e2a521fa 100644 --- a/src/finiteVolume/fvMatrices/fvBlockMatrix/fvBlockMatrix.C +++ b/src/finiteVolume/fvMatrices/fvBlockMatrix/fvBlockMatrix.C @@ -941,7 +941,7 @@ void Foam::fvBlockMatrix::insertAdjointConvection // (boundary) contributions - need to check. VV, 7/Apr/2016. // Loop through faces - register label own, nei; + label own, nei; forAll (neighbour, faceI) { own = owner[faceI]; diff --git a/src/finiteVolume/fvMesh/fvPatches/constraint/ggi/ggiFvPatch.C b/src/finiteVolume/fvMesh/fvPatches/constraint/ggi/ggiFvPatch.C index 611900f37..e181bd205 100644 --- a/src/finiteVolume/fvMesh/fvPatches/constraint/ggi/ggiFvPatch.C +++ b/src/finiteVolume/fvMesh/fvPatches/constraint/ggi/ggiFvPatch.C @@ -342,7 +342,7 @@ void Foam::ggiFvPatch::expandCrMatrixToZone(crMatrix& patchP) const List cols(patchCrAddr.nRows()); List coeffs(patchCrAddr.nRows()); - for (register label faceI = 0; faceI < patchCrAddr.nRows(); faceI++) + for (label faceI = 0; faceI < patchCrAddr.nRows(); faceI++) { // Unpack row const label rowStart = patchRowStart[faceI]; @@ -354,7 +354,7 @@ void Foam::ggiFvPatch::expandCrMatrixToZone(crMatrix& patchP) const coeffs[faceI].setSize(rowLength); scalarField& curCoeffs = coeffs[faceI]; - for (register label coeffI = 0; coeffI < rowLength; coeffI++) + for (label coeffI = 0; coeffI < rowLength; coeffI++) { curCols[coeffI] = patchCol[rowStart + coeffI]; curCoeffs[coeffI] = patchCoeff[rowStart + coeffI]; diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/biLinearFit/biLinearFitPolynomial.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/biLinearFit/biLinearFitPolynomial.H index 1b6348475..02e337ec5 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/biLinearFit/biLinearFitPolynomial.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/biLinearFit/biLinearFitPolynomial.H @@ -70,7 +70,7 @@ public: const direction dim ) { - register label curIdx = 0; + label curIdx = 0; coeffs[curIdx++] = weight; coeffs[curIdx++] = weight*d.x(); diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/cubicUpwindFit/cubicUpwindFitPolynomial.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/cubicUpwindFit/cubicUpwindFitPolynomial.H index 5b895e598..5383eafc0 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/cubicUpwindFit/cubicUpwindFitPolynomial.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/cubicUpwindFit/cubicUpwindFitPolynomial.H @@ -70,7 +70,7 @@ public: const direction dim ) { - register label curIdx = 0; + label curIdx = 0; coeffs[curIdx++] = weight; coeffs[curIdx++] = weight*d.x(); diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearFit/linearFitPolynomial.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearFit/linearFitPolynomial.H index efdb9d5d3..1b8a49c68 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearFit/linearFitPolynomial.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearFit/linearFitPolynomial.H @@ -70,7 +70,7 @@ public: const direction dim ) { - register label curIdx = 0; + label curIdx = 0; coeffs[curIdx++] = weight; coeffs[curIdx++] = weight*d.x(); diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticFit/quadraticFitPolynomial.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticFit/quadraticFitPolynomial.H index b49d7303a..cd02b1a84 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticFit/quadraticFitPolynomial.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticFit/quadraticFitPolynomial.H @@ -70,7 +70,7 @@ public: const direction dim ) { - register label curIdx = 0; + label curIdx = 0; coeffs[curIdx++] = weight; coeffs[curIdx++] = weight*d.x(); diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticLinearFit/quadraticLinearFitPolynomial.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticLinearFit/quadraticLinearFitPolynomial.H index 8ebaddca3..0c2139836 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticLinearFit/quadraticLinearFitPolynomial.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticLinearFit/quadraticLinearFitPolynomial.H @@ -72,7 +72,7 @@ public: const direction dim ) { - register label curIdx = 0; + label curIdx = 0; coeffs[curIdx++] = weight; coeffs[curIdx++] = weight*d.x(); diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticLinearUpwindFit/quadraticLinearUpwindFitPolynomial.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticLinearUpwindFit/quadraticLinearUpwindFitPolynomial.H index 8d81d7af2..334303198 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticLinearUpwindFit/quadraticLinearUpwindFitPolynomial.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticLinearUpwindFit/quadraticLinearUpwindFitPolynomial.H @@ -70,7 +70,7 @@ public: const direction dim ) { - register label curIdx = 0; + label curIdx = 0; coeffs[curIdx++] = weight; coeffs[curIdx++] = weight*d.x(); diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticUpwindFit/quadraticUpwindFitPolynomial.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticUpwindFit/quadraticUpwindFitPolynomial.H index daa9d6d91..797cd6248 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticUpwindFit/quadraticUpwindFitPolynomial.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/quadraticUpwindFit/quadraticUpwindFitPolynomial.H @@ -70,7 +70,7 @@ public: const direction dim ) { - register label curIdx = 0; + label curIdx = 0; coeffs[curIdx++] = weight; coeffs[curIdx++] = weight*d.x(); diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolationScheme/surfaceInterpolationScheme.C b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolationScheme/surfaceInterpolationScheme.C index b8b75c549..4b0e01828 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolationScheme/surfaceInterpolationScheme.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolationScheme/surfaceInterpolationScheme.C @@ -208,7 +208,7 @@ surfaceInterpolationScheme::interpolate Field& sfi = sf.internalField(); - for (register label fi=0; fi::interpolate Field& sfi = sf.internalField(); - for (register label fi=0; fi::FixedList() template inline Foam::FixedList::FixedList(const T v[Size]) { - for (register unsigned i=0; i::FixedList(const T v[Size]) template inline Foam::FixedList::FixedList(const T& t) { - for (register unsigned i=0; i::FixedList(const UList& lst) { checkSize(lst.size()); - for (register unsigned i=0; i::FixedList(const SLList& lst) { checkSize(lst.size()); - register label i = 0; + label i = 0; for ( typename SLList::const_iterator iter = lst.begin(); @@ -87,7 +87,7 @@ inline Foam::FixedList::FixedList(const SLList& lst) template inline Foam::FixedList::FixedList(const FixedList& lst) { - for (register unsigned i = 0; i < Size; i++) + for (unsigned i = 0; i < Size; i++) { v_[i] = lst[i]; } @@ -184,7 +184,7 @@ inline void Foam::FixedList::setSize(const label s) template inline void Foam::FixedList::transfer(const FixedList& lst) { - for (register unsigned i=0; i::operator[](const label i) const template inline void Foam::FixedList::operator=(const T lst[Size]) { - for (register unsigned i=0; i::operator=(const UList& lst) { checkSize(lst.size()); - for (register unsigned i=0; i::operator=(const SLList& lst) { checkSize(lst.size()); - register label i = 0; + label i = 0; for ( typename SLList::const_iterator iter = lst.begin(); @@ -271,7 +271,7 @@ inline void Foam::FixedList::operator=(const SLList& lst) template inline void Foam::FixedList::operator=(const T& t) { - for (register unsigned i=0; i::Hash::operator() // hash incrementally unsigned val = seed; - for (register unsigned i=0; i>(Foam::Istream& is, FixedList& L) if (delimiter == token::BEGIN_LIST) { - for (register unsigned i=0; i> L[i]; @@ -107,7 +107,7 @@ Foam::Istream& Foam::operator>>(Foam::Istream& is, FixedList& L) "reading the single entry" ); - for (register unsigned i=0; i::setSize(const label newSize) if (this->size_) { - register label i = min(this->size_, newSize); + label i = min(this->size_, newSize); # ifdef USEMEMCPY if (contiguous()) @@ -364,8 +364,8 @@ void Foam::List::setSize(const label newSize) else # endif { - register T* vv = &this->v_[i]; - register T* av = &nv[i]; + T* vv = &this->v_[i]; + T* av = &nv[i]; while (i--) *--av = *--vv; } } @@ -390,8 +390,8 @@ void Foam::List::setSize(const label newSize, const T& a) if (newSize > oldSize) { - register label i = newSize - oldSize; - register T* vv = &this->v_[newSize]; + label i = newSize - oldSize; + T* vv = &this->v_[newSize]; while (i--) *--vv = a; } } diff --git a/src/foam/containers/Lists/List/ListIO.C b/src/foam/containers/Lists/List/ListIO.C index 9ad637395..44a13c786 100644 --- a/src/foam/containers/Lists/List/ListIO.C +++ b/src/foam/containers/Lists/List/ListIO.C @@ -80,7 +80,7 @@ Foam::Istream& Foam::operator>>(Istream& is, List& L) { if (delimiter == token::BEGIN_LIST) { - for (register label i=0; i> L[i]; @@ -101,7 +101,7 @@ Foam::Istream& Foam::operator>>(Istream& is, List& L) "reading the single entry" ); - for (register label i=0; i::setSize(const label newSize) } else if (newSize < oldSize) { - register label i; + label i; for (i=newSize; i::setSize(const label newSize) { ptrs_.setSize(newSize); - register label i; + label i; for (i=oldSize; i::setSize(const label newSize) if (newSize > oldSize) { // set new elements to nullptr - for (register label i = oldSize; i < newSize; i++) + for (label i = oldSize; i < newSize; i++) { ptrs_[i] = nullptr; } diff --git a/src/foam/db/IOstreams/Pstreams/IPstream.C b/src/foam/db/IOstreams/Pstreams/IPstream.C index 593056d5b..b49c9a506 100644 --- a/src/foam/db/IOstreams/Pstreams/IPstream.C +++ b/src/foam/db/IOstreams/Pstreams/IPstream.C @@ -65,9 +65,9 @@ inline void Foam::IPstream::readFromBuffer bufPosition_ = align + ((bufPosition_ - 1) & ~(align - 1)); } - register const char* bufPtr = &buf_[bufPosition_]; - register char* dataPtr = reinterpret_cast(data); - register size_t i = count; + const char* bufPtr = &buf_[bufPosition_]; + char* dataPtr = reinterpret_cast(data); + size_t i = count; while (i--) *dataPtr++ = *bufPtr++; bufPosition_ += count; checkEof(); diff --git a/src/foam/db/IOstreams/Pstreams/OPstream.C b/src/foam/db/IOstreams/Pstreams/OPstream.C index a44cf34a2..3c0d4d39e 100644 --- a/src/foam/db/IOstreams/Pstreams/OPstream.C +++ b/src/foam/db/IOstreams/Pstreams/OPstream.C @@ -75,9 +75,9 @@ inline void Foam::OPstream::writeToBuffer enlargeBuffer(bufPosition_ - oldPos + count); } - register char* bufPtr = &buf_[bufPosition_]; - register const char* dataPtr = reinterpret_cast(data); - register size_t i = count; + char* bufPtr = &buf_[bufPosition_]; + const char* dataPtr = reinterpret_cast(data); + size_t i = count; while (i--) *bufPtr++ = *dataPtr++; bufPosition_ += count; diff --git a/src/foam/db/IOstreams/Sstreams/OSstream.C b/src/foam/db/IOstreams/Sstreams/OSstream.C index b76417108..352b7d0c2 100644 --- a/src/foam/db/IOstreams/Sstreams/OSstream.C +++ b/src/foam/db/IOstreams/Sstreams/OSstream.C @@ -80,10 +80,10 @@ Foam::Ostream& Foam::OSstream::write(const string& str) { os_ << token::BEGIN_STRING; - register int backslash = 0; + int backslash = 0; for (string::const_iterator iter = str.begin(); iter != str.end(); ++iter) { - register char c = *iter; + char c = *iter; if (c == '\\') { @@ -131,7 +131,7 @@ Foam::Ostream& Foam::OSstream::writeQuoted { os_ << token::BEGIN_STRING; - register int backslash = 0; + int backslash = 0; for ( string::const_iterator iter = str.begin(); @@ -139,7 +139,7 @@ Foam::Ostream& Foam::OSstream::writeQuoted ++iter ) { - register char c = *iter; + char c = *iter; if (c == '\\') { @@ -236,7 +236,7 @@ Foam::Ostream& Foam::OSstream::write(const char* buf, std::streamsize count) void Foam::OSstream::indent() { - for (register unsigned short i = 0; i < indentLevel_*indentSize_; i++) + for (unsigned short i = 0; i < indentLevel_*indentSize_; i++) { os_ << ' '; } diff --git a/src/foam/db/IOstreams/Sstreams/readHexLabel.C b/src/foam/db/IOstreams/Sstreams/readHexLabel.C index 0ec0c7a66..685d14416 100644 --- a/src/foam/db/IOstreams/Sstreams/readHexLabel.C +++ b/src/foam/db/IOstreams/Sstreams/readHexLabel.C @@ -43,7 +43,7 @@ Foam::label Foam::readHexLabel(ISstream& is) while (is.get(c) && isspace(c)) {} - register label result = 0; + label result = 0; do { if (isspace(c) || c == 0) break; diff --git a/src/foam/graph/curve/curve.C b/src/foam/graph/curve/curve.C index 8d6aff4ea..1c0d4a67c 100644 --- a/src/foam/graph/curve/curve.C +++ b/src/foam/graph/curve/curve.C @@ -46,7 +46,7 @@ curve::curve(const curve& Curve, const label nFacets) { // Calculate curve length scalar curveLength=0; - register label i; + label i; for (i=0; i::allocate() v_ = new Type*[n_]; v_[0] = new Type[n_*m_]; - for (register label i=1; i::Matrix(const label n, const label m, const Type& a) label nm = n_*m_; - for (register label i=0; i::Matrix(const Matrix& a) const Type* av = a.v_[0]; label nm = n_*m_; - for (register label i=0; i::T() const const Matrix& A = *this; Form At(m(), n()); - for (register label i=0; i::operator=(const Type& t) Type* v = v_[0]; label nm = n_*m_; - for (register label i=0; i::operator=(const Matrix& a) const Type* av = a.v_[0]; label nm = n_*m_; - for (register label i=0; i& a) label curMaxI = 0; const Type* v = a[0]; - for (register label i=1; i v[curMaxI]) { @@ -284,7 +284,7 @@ const Type& Foam::min(const Matrix& a) label curMinI = 0; const Type* v = a[0]; - for (register label i=1; i& a) const Type* av = a[0]; label nm = a.n()*a.m(); - for (register label i=0; i& a, const Matrix& b) const Type* bv = b[0]; label nm = a.n()*a.m(); - for (register label i=0; i& a, const Matrix& b) const Type* bv = b[0]; label nm = a.n()*a.m(); - for (register label i=0; i& a) const Type* av = a[0]; label nm = a.n()*a.m(); - for (register label i=0; i>(Istream& is, Matrix& M) label k = 0; // loop over rows - for (register label i=0; i> v[k++]; @@ -106,7 +106,7 @@ Foam::Istream& Foam::operator>>(Istream& is, Matrix& M) "reading the single entry" ); - for (register label i=0; i& M) { uniform = true; - for (register label i=0; i< nm; i++) + for (label i=0; i< nm; i++) { if (v[i] != v[0]) { @@ -196,12 +196,12 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const Matrix& M) label k = 0; // loop over rows - for (register label i=0; i< M.n(); i++) + for (label i=0; i< M.n(); i++) { os << nl << token::BEGIN_LIST; // Write row - for (register label j=0; j< M.m(); j++) + for (label j=0; j< M.m(); j++) { if (j > 0) os << token::SPACE; os << v[k++]; @@ -221,12 +221,12 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const Matrix& M) label k = 0; // loop over rows - for (register label i=0; i< M.n(); i++) + for (label i=0; i< M.n(); i++) { os << nl << token::BEGIN_LIST; // Write row - for (register label j=0; j< M.m(); j++) + for (label j=0; j< M.m(); j++) { os << nl << v[k++]; } diff --git a/src/foam/matrices/blockLduMatrix/BlockAMG/BlockMatrixCoarsening/BlockMatrixSelection/BlockMatrixSelection.C b/src/foam/matrices/blockLduMatrix/BlockAMG/BlockMatrixCoarsening/BlockMatrixSelection/BlockMatrixSelection.C index adbaa2747..5947420b6 100644 --- a/src/foam/matrices/blockLduMatrix/BlockAMG/BlockMatrixCoarsening/BlockMatrixSelection/BlockMatrixSelection.C +++ b/src/foam/matrices/blockLduMatrix/BlockAMG/BlockMatrixCoarsening/BlockMatrixSelection/BlockMatrixSelection.C @@ -186,12 +186,12 @@ void Foam::BlockMatrixSelection::calcCoarsening() scalarField epsilonStrongCoeff(nRows, 0); // Select the strongest coefficient in each row - for (register label i = 0; i < nRows; i++) + for (label i = 0; i < nRows; i++) { const scalar signDiag = sign(normDiag[i]); // Do lower triangle coefficient for the row first - for (register label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) + for (label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) { const scalar magAij = mag(min(signDiag*normLower[losortAddr[jp]], 0)); @@ -203,7 +203,7 @@ void Foam::BlockMatrixSelection::calcCoarsening() } // Do upper triangle coefficient for the row - for (register label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) + for (label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) { const scalar magAij = mag(min(signDiag*normUpper[ip], 0)); @@ -222,12 +222,12 @@ void Foam::BlockMatrixSelection::calcCoarsening() // positive and negative coefficients. HJ, 28/Feb/2017 labelList strongCoeffCounter(nRows, 0); - for (register label i = 0; i < nRows; i++) + for (label i = 0; i < nRows; i++) { const scalar signDiag = sign(normDiag[i]); // Do lower triangle coefficient for the row first - for (register label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) + for (label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) { const scalar magAij = mag(min(signDiag*normLower[losortAddr[jp]], 0)); @@ -239,7 +239,7 @@ void Foam::BlockMatrixSelection::calcCoarsening() } // Do upper triangle coefficient for the row - for (register label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) + for (label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) { const scalar magAij = mag(min(signDiag*normUpper[ip], 0)); @@ -266,12 +266,12 @@ void Foam::BlockMatrixSelection::calcCoarsening() // Reset strongCoeffCounter for re-use strongCoeffCounter = 0; - for (register label i = 0; i < nRows; i++) + for (label i = 0; i < nRows; i++) { const scalar signDiag = sign(normDiag[i]); // Do lower triangle coefficient for the row first - for (register label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) + for (label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) { const scalar magAij = mag(min(signDiag*normLower[losortAddr[jp]], 0)); @@ -511,7 +511,7 @@ void Foam::BlockMatrixSelection::calcCoarsening() // Start row assembly pRow[0] = 0; - for (register label i = 0; i < nRows; i++) + for (label i = 0; i < nRows; i++) { label rowCount = pRow[i]; @@ -520,7 +520,7 @@ void Foam::BlockMatrixSelection::calcCoarsening() signDii = sign(normDiag[i]); // Do lower triangle coefficient for the row first - for (register label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) + for (label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) { // Adjust sign of off-diag coeff Dij = sign(normDiag[i])*normLower[losortAddr[jp]]; @@ -532,7 +532,7 @@ void Foam::BlockMatrixSelection::calcCoarsening() } // Do upper triangle coefficient for the row - for (register label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) + for (label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) { // Adjust sign of off-diag coeff Dij = signDii*normUpper[ip]; @@ -551,7 +551,7 @@ void Foam::BlockMatrixSelection::calcCoarsening() for ( - register label sip = strongRow[i]; + label sip = strongRow[i]; sip < strongRow[i + 1]; sip++ ) @@ -566,7 +566,7 @@ void Foam::BlockMatrixSelection::calcCoarsening() for ( - register label sip = strongRow[i]; + label sip = strongRow[i]; sip < strongRow[i + 1]; sip++ ) @@ -614,7 +614,7 @@ void Foam::BlockMatrixSelection::calcCoarsening() const labelList& prolongationRow = Pptr_->crAddr().rowStart(); const scalarField& prolongationCoeff = Pptr_->coeffs(); - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { for ( @@ -1505,9 +1505,9 @@ void Foam::BlockMatrixSelection::restrictResidual // Multiply the residual with restriction weights to obtain the initial // coarse residual - for (register label i = 0; i < nCoarseEqns_; i++) + for (label i = 0; i < nCoarseEqns_; i++) { - for (register label k = rowR[i]; k < rowR[i + 1]; k++) + for (label k = rowR[i]; k < rowR[i + 1]; k++) { // Multiply each coeff in row of restriction with the corresponding // residual coefficient (col index of R is the same as row index @@ -1546,9 +1546,9 @@ void Foam::BlockMatrixSelection::prolongateCorrection // Multiply the coarse level solution with prolongation and obtain fine // level solution - for (register label i = 0; i < sizeP; i++) + for (label i = 0; i < sizeP; i++) { - for (register label k = rowP[i]; k < rowP[i + 1]; k++) + for (label k = rowP[i]; k < rowP[i + 1]; k++) { // Multiply each coeff in row of prolongation with the corresponding // coarse residual coefficient (col index of prolongation must be diff --git a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixATmul.C b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixATmul.C index f8781964a..95d0441c6 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixATmul.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixATmul.C @@ -83,7 +83,7 @@ void Foam::BlockLduMatrix::AmulCore { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[u[coeffI]] += mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -92,7 +92,7 @@ void Foam::BlockLduMatrix::AmulCore { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[u[coeffI]] += mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -101,7 +101,7 @@ void Foam::BlockLduMatrix::AmulCore { const squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // Use transpose upper coefficient Ax[u[coeffI]] += @@ -117,7 +117,7 @@ void Foam::BlockLduMatrix::AmulCore { const scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[u[coeffI]] += mult(activeLower[coeffI], x[l[coeffI]]); } @@ -126,7 +126,7 @@ void Foam::BlockLduMatrix::AmulCore { const linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[u[coeffI]] += mult(activeLower[coeffI], x[l[coeffI]]); } @@ -135,7 +135,7 @@ void Foam::BlockLduMatrix::AmulCore { const squareTypeField& activeLower = Lower.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[u[coeffI]] += mult(activeLower[coeffI], x[l[coeffI]]); } @@ -148,7 +148,7 @@ void Foam::BlockLduMatrix::AmulCore { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[l[coeffI]] += mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -157,7 +157,7 @@ void Foam::BlockLduMatrix::AmulCore { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[l[coeffI]] += mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -166,7 +166,7 @@ void Foam::BlockLduMatrix::AmulCore { const squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[l[coeffI]] += mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -222,7 +222,7 @@ void Foam::BlockLduMatrix::TmulCore { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[u[coeffI]] += mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -231,7 +231,7 @@ void Foam::BlockLduMatrix::TmulCore { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[u[coeffI]] += mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -240,7 +240,7 @@ void Foam::BlockLduMatrix::TmulCore { const squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // Bug fix: Missing transpose. VV, 31/Aug/2015. Tx[u[coeffI]] += mult(activeUpper[coeffI].T(), x[l[coeffI]]); @@ -255,7 +255,7 @@ void Foam::BlockLduMatrix::TmulCore { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[l[coeffI]] += mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -264,7 +264,7 @@ void Foam::BlockLduMatrix::TmulCore { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[l[coeffI]] += mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -273,7 +273,7 @@ void Foam::BlockLduMatrix::TmulCore { const squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // Use transpose upper coefficient Tx[l[coeffI]] += @@ -289,7 +289,7 @@ void Foam::BlockLduMatrix::TmulCore { const scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[l[coeffI]] += mult(activeLower[coeffI], x[u[coeffI]]); } @@ -298,7 +298,7 @@ void Foam::BlockLduMatrix::TmulCore { const linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[l[coeffI]] += mult(activeLower[coeffI], x[u[coeffI]]); } @@ -307,7 +307,7 @@ void Foam::BlockLduMatrix::TmulCore { const squareTypeField& activeLower = Lower.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // Bug fix: Missing transpose. VV, 31/Aug/2015. Tx[l[coeffI]] += mult(activeLower[coeffI].T(), x[u[coeffI]]); @@ -362,7 +362,7 @@ void Foam::BlockLduMatrix::segregateB linearType lt; squareType st; - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { contractLinear(lt, activeLower[coeffI]); expandLinear(st, lt); @@ -384,7 +384,7 @@ void Foam::BlockLduMatrix::segregateB linearType lt; squareType st; - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { contractLinear(lt, activeUpper[coeffI]); expandLinear(st, lt); @@ -396,7 +396,7 @@ void Foam::BlockLduMatrix::segregateB // is also needed if (symmetric()) { - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // Use transpose upper coefficient contractLinear(lt, activeUpper[coeffI]); diff --git a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixDecouple.C b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixDecouple.C index 7b8ecdff2..09e41c22a 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixDecouple.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixDecouple.C @@ -57,7 +57,7 @@ void Foam::BlockLduMatrix::decoupledSumDiag() const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiag = Diag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeUpper[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -72,7 +72,7 @@ void Foam::BlockLduMatrix::decoupledSumDiag() const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiag = Diag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeUpper[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -100,7 +100,7 @@ void Foam::BlockLduMatrix::decoupledSumDiag() const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiag = Diag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeLower[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -117,7 +117,7 @@ void Foam::BlockLduMatrix::decoupledSumDiag() const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiag = Diag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeLower[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -160,7 +160,7 @@ void Foam::BlockLduMatrix::decoupledNegSumDiag() const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiag = Diag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeUpper[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -175,7 +175,7 @@ void Foam::BlockLduMatrix::decoupledNegSumDiag() const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiag = Diag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeUpper[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -203,7 +203,7 @@ void Foam::BlockLduMatrix::decoupledNegSumDiag() const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiag = Diag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeLower[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -220,7 +220,7 @@ void Foam::BlockLduMatrix::decoupledNegSumDiag() const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiag = Diag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeLower[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -263,7 +263,7 @@ void Foam::BlockLduMatrix::decoupledCheck() const const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiagCopy = DiagCopy.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiagCopy[l[coeffI]] += activeUpper[coeffI]; activeDiagCopy[u[coeffI]] += activeUpper[coeffI]; @@ -285,7 +285,7 @@ void Foam::BlockLduMatrix::decoupledCheck() const const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiagCopy = DiagCopy.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiagCopy[l[coeffI]] += activeUpper[coeffI]; activeDiagCopy[u[coeffI]] += activeUpper[coeffI]; @@ -317,7 +317,7 @@ void Foam::BlockLduMatrix::decoupledCheck() const const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiagCopy = DiagCopy.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiagCopy[l[coeffI]] += activeLower[coeffI]; activeDiagCopy[u[coeffI]] += activeUpper[coeffI]; @@ -341,7 +341,7 @@ void Foam::BlockLduMatrix::decoupledCheck() const const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiagCopy = DiagCopy.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiagCopy[l[coeffI]] += activeLower[coeffI]; activeDiagCopy[u[coeffI]] += activeUpper[coeffI]; @@ -415,7 +415,7 @@ void Foam::BlockLduMatrix::decoupledRelax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += cmptMag(activeUpper[coeffI]); sumOff[l[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -448,7 +448,7 @@ void Foam::BlockLduMatrix::decoupledRelax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += mag(activeUpper[coeffI]); sumOff[l[coeffI]] += mag(activeUpper[coeffI]); @@ -491,7 +491,7 @@ void Foam::BlockLduMatrix::decoupledRelax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += cmptMag(activeLower[coeffI]); sumOff[l[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -520,7 +520,7 @@ void Foam::BlockLduMatrix::decoupledRelax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += mag(activeLower[coeffI]); sumOff[l[coeffI]] += mag(activeUpper[coeffI]); @@ -559,7 +559,7 @@ void Foam::BlockLduMatrix::decoupledMultEqOp(const scalarField& sf) { scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeUpper[coeffI] *= sf[l[coeffI]]; } @@ -568,7 +568,7 @@ void Foam::BlockLduMatrix::decoupledMultEqOp(const scalarField& sf) { linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeUpper[coeffI] *= sf[l[coeffI]]; } @@ -585,7 +585,7 @@ void Foam::BlockLduMatrix::decoupledMultEqOp(const scalarField& sf) { scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { activeLower[coeffI] *= sf[u[coeffI]]; } @@ -594,7 +594,7 @@ void Foam::BlockLduMatrix::decoupledMultEqOp(const scalarField& sf) { linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { activeLower[coeffI] *= sf[u[coeffI]]; } @@ -636,7 +636,7 @@ void Foam::BlockLduMatrix::decoupledAmulCore { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[u[coeffI]] += mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -645,7 +645,7 @@ void Foam::BlockLduMatrix::decoupledAmulCore { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[u[coeffI]] += mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -659,7 +659,7 @@ void Foam::BlockLduMatrix::decoupledAmulCore { const scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[u[coeffI]] += mult(activeLower[coeffI], x[l[coeffI]]); } @@ -668,7 +668,7 @@ void Foam::BlockLduMatrix::decoupledAmulCore { const linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[u[coeffI]] += mult(activeLower[coeffI], x[l[coeffI]]); } @@ -682,7 +682,7 @@ void Foam::BlockLduMatrix::decoupledAmulCore { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[l[coeffI]] += mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -691,7 +691,7 @@ void Foam::BlockLduMatrix::decoupledAmulCore { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Ax[l[coeffI]] += mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -729,7 +729,7 @@ void Foam::BlockLduMatrix::decoupledTmulCore { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[u[coeffI]] += mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -738,7 +738,7 @@ void Foam::BlockLduMatrix::decoupledTmulCore { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[u[coeffI]] += mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -752,7 +752,7 @@ void Foam::BlockLduMatrix::decoupledTmulCore { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[l[coeffI]] += mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -761,7 +761,7 @@ void Foam::BlockLduMatrix::decoupledTmulCore { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[l[coeffI]] += mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -775,7 +775,7 @@ void Foam::BlockLduMatrix::decoupledTmulCore { const scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[l[coeffI]] += mult(activeLower[coeffI], x[u[coeffI]]); } @@ -784,7 +784,7 @@ void Foam::BlockLduMatrix::decoupledTmulCore { const linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { Tx[l[coeffI]] += mult(activeLower[coeffI], x[u[coeffI]]); } diff --git a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixDecoupledHOps.C b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixDecoupledHOps.C index c3c41e476..3cfec26aa 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixDecoupledHOps.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixDecoupledHOps.C @@ -60,7 +60,7 @@ Foam::BlockLduMatrix::decoupledH(const Field& x) const { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[u[coeffI]] -= mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -69,7 +69,7 @@ Foam::BlockLduMatrix::decoupledH(const Field& x) const { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[u[coeffI]] -= mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -83,7 +83,7 @@ Foam::BlockLduMatrix::decoupledH(const Field& x) const { const scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[u[coeffI]] -= mult(activeLower[coeffI], x[l[coeffI]]); } @@ -92,7 +92,7 @@ Foam::BlockLduMatrix::decoupledH(const Field& x) const { const linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[u[coeffI]] -= mult(activeLower[coeffI], x[l[coeffI]]); } @@ -106,7 +106,7 @@ Foam::BlockLduMatrix::decoupledH(const Field& x) const { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[l[coeffI]] -= mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -115,7 +115,7 @@ Foam::BlockLduMatrix::decoupledH(const Field& x) const { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[l[coeffI]] -= mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -152,7 +152,7 @@ Foam::BlockLduMatrix::decoupledFaceH(const Field& x) const { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // This can be optimised with a subtraction. // Currently not done for clarity. HJ, 31/Oct/2007 @@ -165,7 +165,7 @@ Foam::BlockLduMatrix::decoupledFaceH(const Field& x) const { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // This can be optimised with a subtraction. // Currently not done for clarity. HJ, 31/Oct/2007 @@ -184,7 +184,7 @@ Foam::BlockLduMatrix::decoupledFaceH(const Field& x) const const scalarTypeField& activeUpper = Upper.asScalar(); const scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[coeffI] = mult(activeUpper[coeffI], x[u[coeffI]]) @@ -196,7 +196,7 @@ Foam::BlockLduMatrix::decoupledFaceH(const Field& x) const const linearTypeField& activeUpper = Upper.asLinear(); const linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[coeffI] = mult(activeUpper[coeffI], x[u[coeffI]]) diff --git a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixHOps.C b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixHOps.C index c5378e134..217eeb8a6 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixHOps.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixHOps.C @@ -62,7 +62,7 @@ Foam::BlockLduMatrix::H(const Field& x) const { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[u[coeffI]] -= mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -71,7 +71,7 @@ Foam::BlockLduMatrix::H(const Field& x) const { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[u[coeffI]] -= mult(activeUpper[coeffI], x[l[coeffI]]); } @@ -80,7 +80,7 @@ Foam::BlockLduMatrix::H(const Field& x) const { const squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // Use transpose upper coefficient result[u[coeffI]] -= @@ -96,7 +96,7 @@ Foam::BlockLduMatrix::H(const Field& x) const { const scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[u[coeffI]] -= mult(activeLower[coeffI], x[l[coeffI]]); } @@ -105,7 +105,7 @@ Foam::BlockLduMatrix::H(const Field& x) const { const linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[u[coeffI]] -= mult(activeLower[coeffI], x[l[coeffI]]); } @@ -114,7 +114,7 @@ Foam::BlockLduMatrix::H(const Field& x) const { const squareTypeField& activeLower = Lower.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[u[coeffI]] -= mult(activeLower[coeffI], x[l[coeffI]]); } @@ -128,7 +128,7 @@ Foam::BlockLduMatrix::H(const Field& x) const { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[l[coeffI]] -= mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -137,7 +137,7 @@ Foam::BlockLduMatrix::H(const Field& x) const { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[l[coeffI]] -= mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -146,7 +146,7 @@ Foam::BlockLduMatrix::H(const Field& x) const { const squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[l[coeffI]] -= mult(activeUpper[coeffI], x[u[coeffI]]); } @@ -187,7 +187,7 @@ Foam::BlockLduMatrix::faceH(const Field& x) const { const scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // This can be optimised with a subtraction. // Currently not done for clarity. HJ, 31/Oct/2007 @@ -200,7 +200,7 @@ Foam::BlockLduMatrix::faceH(const Field& x) const { const linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // This can be optimised with a subtraction. // Currently not done for clarity. HJ, 31/Oct/2007 @@ -213,7 +213,7 @@ Foam::BlockLduMatrix::faceH(const Field& x) const { const squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { // Use transpose upper coefficient result[coeffI] = @@ -231,7 +231,7 @@ Foam::BlockLduMatrix::faceH(const Field& x) const const scalarTypeField& activeUpper = Upper.asScalar(); const scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[coeffI] = mult(activeUpper[coeffI], x[u[coeffI]]) @@ -243,7 +243,7 @@ Foam::BlockLduMatrix::faceH(const Field& x) const const linearTypeField& activeUpper = Upper.asLinear(); const linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[coeffI] = mult(activeUpper[coeffI], x[u[coeffI]]) @@ -255,7 +255,7 @@ Foam::BlockLduMatrix::faceH(const Field& x) const const squareTypeField& activeUpper = Upper.asSquare(); const squareTypeField& activeLower = Lower.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { result[coeffI] = mult(activeUpper[coeffI], x[u[coeffI]]) diff --git a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixOperations.C b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixOperations.C index f9a193ec8..b7a7ccfa1 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixOperations.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/BlockLduMatrixOperations.C @@ -56,7 +56,7 @@ void Foam::BlockLduMatrix::sumDiag() const squareTypeField& activeUpper = Upper.asSquare(); squareTypeField& activeDiag = Diag.asSquare(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeUpper[coeffI].T(); activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -71,7 +71,7 @@ void Foam::BlockLduMatrix::sumDiag() const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiag = Diag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeUpper[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -86,7 +86,7 @@ void Foam::BlockLduMatrix::sumDiag() const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiag = Diag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeUpper[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -114,7 +114,7 @@ void Foam::BlockLduMatrix::sumDiag() const squareTypeField& activeUpper = Upper.asSquare(); squareTypeField& activeDiag = Diag.asSquare(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeLower[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -131,7 +131,7 @@ void Foam::BlockLduMatrix::sumDiag() const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiag = Diag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeLower[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -148,7 +148,7 @@ void Foam::BlockLduMatrix::sumDiag() const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiag = Diag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeLower[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -192,7 +192,7 @@ void Foam::BlockLduMatrix::negSumDiag() const squareTypeField& activeUpper = Upper.asSquare(); squareTypeField& activeDiag = Diag.asSquare(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeUpper[coeffI].T(); activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -207,7 +207,7 @@ void Foam::BlockLduMatrix::negSumDiag() const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiag = Diag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeUpper[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -222,7 +222,7 @@ void Foam::BlockLduMatrix::negSumDiag() const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiag = Diag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeUpper[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -250,7 +250,7 @@ void Foam::BlockLduMatrix::negSumDiag() const squareTypeField& activeUpper = Upper.asSquare(); squareTypeField& activeDiag = Diag.asSquare(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeLower[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -267,7 +267,7 @@ void Foam::BlockLduMatrix::negSumDiag() const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeDiag = Diag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeLower[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -284,7 +284,7 @@ void Foam::BlockLduMatrix::negSumDiag() const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeDiag = Diag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeLower[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -362,7 +362,7 @@ void Foam::BlockLduMatrix::check() const const squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeSumOffDiag[l[coeffI]] += sumMagToDiag(activeUpper[coeffI].T()); @@ -395,7 +395,7 @@ void Foam::BlockLduMatrix::check() const const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeSumOffDiag = SumOffDiag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeSumOffDiag[l[coeffI]] += cmptMag(activeUpper[coeffI]); activeSumOffDiag[u[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -422,7 +422,7 @@ void Foam::BlockLduMatrix::check() const const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeSumOffDiag = SumOffDiag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeSumOffDiag[l[coeffI]] += cmptMag(activeUpper[coeffI]); activeSumOffDiag[u[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -481,7 +481,7 @@ void Foam::BlockLduMatrix::check() const const squareTypeField& activeLower = Lower.asSquare(); const squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeSumOffDiag[l[coeffI]] += sumMagToDiag(activeLower[coeffI]); @@ -516,7 +516,7 @@ void Foam::BlockLduMatrix::check() const const linearTypeField& activeUpper = Upper.asLinear(); linearTypeField& activeSumOffDiag = SumOffDiag.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeSumOffDiag[l[coeffI]] += cmptMag(activeLower[coeffI]); activeSumOffDiag[u[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -545,7 +545,7 @@ void Foam::BlockLduMatrix::check() const const scalarTypeField& activeUpper = Upper.asScalar(); scalarTypeField& activeSumOffDiag = SumOffDiag.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeSumOffDiag[l[coeffI]] += cmptMag(activeLower[coeffI]); activeSumOffDiag[u[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -623,7 +623,7 @@ void Foam::BlockLduMatrix::relax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += cmptMag(activeUpper[coeffI].T()); sumOff[l[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -658,7 +658,7 @@ void Foam::BlockLduMatrix::relax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += cmptMag(activeUpper[coeffI]); sumOff[l[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -691,7 +691,7 @@ void Foam::BlockLduMatrix::relax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += mag(activeUpper[coeffI]); sumOff[l[coeffI]] += mag(activeUpper[coeffI]); @@ -741,7 +741,7 @@ void Foam::BlockLduMatrix::relax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += cmptMag(activeLower[coeffI]); sumOff[l[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -778,7 +778,7 @@ void Foam::BlockLduMatrix::relax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += cmptMag(activeLower[coeffI]); sumOff[l[coeffI]] += cmptMag(activeUpper[coeffI]); @@ -813,7 +813,7 @@ void Foam::BlockLduMatrix::relax pTraits::zero ); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += mag(activeLower[coeffI]); sumOff[l[coeffI]] += mag(activeUpper[coeffI]); @@ -1047,7 +1047,7 @@ void Foam::BlockLduMatrix::operator*=(const scalarField& sf) { scalarTypeField& activeUpper = Upper.asScalar(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeUpper[coeffI] *= sf[l[coeffI]]; } @@ -1056,7 +1056,7 @@ void Foam::BlockLduMatrix::operator*=(const scalarField& sf) { linearTypeField& activeUpper = Upper.asLinear(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeUpper[coeffI] *= sf[l[coeffI]]; } @@ -1065,7 +1065,7 @@ void Foam::BlockLduMatrix::operator*=(const scalarField& sf) { squareTypeField& activeUpper = Upper.asSquare(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeUpper[coeffI] *= sf[l[coeffI]]; } @@ -1082,7 +1082,7 @@ void Foam::BlockLduMatrix::operator*=(const scalarField& sf) { scalarTypeField& activeLower = Lower.asScalar(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { activeLower[coeffI] *= sf[u[coeffI]]; } @@ -1091,7 +1091,7 @@ void Foam::BlockLduMatrix::operator*=(const scalarField& sf) { linearTypeField& activeLower = Lower.asLinear(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { activeLower[coeffI] *= sf[u[coeffI]]; } @@ -1100,7 +1100,7 @@ void Foam::BlockLduMatrix::operator*=(const scalarField& sf) { squareTypeField& activeLower = Lower.asSquare(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { activeLower[coeffI] *= sf[u[coeffI]]; } diff --git a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/scalarBlockLduMatrix.C b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/scalarBlockLduMatrix.C index 885a0a7c6..5f32b951f 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduMatrix/scalarBlockLduMatrix.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduMatrix/scalarBlockLduMatrix.C @@ -43,7 +43,7 @@ void BlockLduMatrix::sumDiag() { const scalarField& activeUpper = upper(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeUpper[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -54,7 +54,7 @@ void BlockLduMatrix::sumDiag() const scalarField& activeLower = lower(); const scalarField& activeUpper = upper(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] += activeLower[coeffI]; activeDiag[u[coeffI]] += activeUpper[coeffI]; @@ -81,7 +81,7 @@ void BlockLduMatrix::negSumDiag() { const scalarField& activeUpper = upper(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeUpper[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -92,7 +92,7 @@ void BlockLduMatrix::negSumDiag() const scalarField& activeLower = lower(); const scalarField& activeUpper = upper(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiag[l[coeffI]] -= activeLower[coeffI]; activeDiag[u[coeffI]] -= activeUpper[coeffI]; @@ -120,7 +120,7 @@ void BlockLduMatrix::check() const { const scalarField& activeUpper = upper(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiagCopy[l[coeffI]] -= activeUpper[coeffI]; activeDiagCopy[u[coeffI]] -= activeUpper[coeffI]; @@ -138,7 +138,7 @@ void BlockLduMatrix::check() const const scalarField& activeLower = lower(); const scalarField& activeUpper = upper(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeDiagCopy[l[coeffI]] -= activeLower[coeffI]; activeDiagCopy[u[coeffI]] -= activeUpper[coeffI]; @@ -180,7 +180,7 @@ void BlockLduMatrix::relax { const scalarField& activeUpper = upper(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += mag(activeUpper[coeffI]); sumOff[l[coeffI]] += mag(activeUpper[coeffI]); @@ -191,7 +191,7 @@ void BlockLduMatrix::relax const scalarField& activeLower = lower(); const scalarField& activeUpper = upper(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { sumOff[u[coeffI]] += mag(activeLower[coeffI]); sumOff[l[coeffI]] += mag(activeUpper[coeffI]); @@ -220,7 +220,7 @@ void BlockLduMatrix::operator*=(const scalarField& sf) const unallocLabelList& l = lduAddr().lowerAddr(); - for (register label coeffI = 0; coeffI < l.size(); coeffI++) + for (label coeffI = 0; coeffI < l.size(); coeffI++) { activeUpper[coeffI] *= sf[l[coeffI]]; } @@ -232,7 +232,7 @@ void BlockLduMatrix::operator*=(const scalarField& sf) const unallocLabelList& u = lduAddr().upperAddr(); - for (register label coeffI = 0; coeffI < u.size(); coeffI++) + for (label coeffI = 0; coeffI < u.size(); coeffI++) { activeLower[coeffI] *= sf[u[coeffI]]; } @@ -258,8 +258,8 @@ void BlockLduMatrix::AmulCore { const scalar* const __restrict__ diagPtr = diag().begin(); - register const label nCells = diag().size(); - for (register label cell=0; cell::AmulCore { const scalar* const __restrict__ Upper = upper().begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { AX[U[coeffI]] += Upper[coeffI]*X[L[coeffI]]; AX[L[coeffI]] += Upper[coeffI]*X[U[coeffI]]; @@ -283,7 +283,7 @@ void BlockLduMatrix::AmulCore { const scalar* const __restrict__ Lower = lower().begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { AX[U[coeffI]] += Lower[coeffI]*X[L[coeffI]]; AX[L[coeffI]] += Lower[coeffI]*X[U[coeffI]]; @@ -295,7 +295,7 @@ void BlockLduMatrix::AmulCore const scalar* const __restrict__ Lower = lower().begin(); const scalar* const __restrict__ Upper = upper().begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { AX[U[coeffI]] += Lower[coeffI]*X[L[coeffI]]; AX[L[coeffI]] += Upper[coeffI]*X[U[coeffI]]; @@ -322,8 +322,8 @@ void BlockLduMatrix::TmulCore { const scalar* const __restrict__ diagPtr = diag().begin(); - register const label nCells = diag().size(); - for (register label cell=0; cell::TmulCore { const scalar* const __restrict__ Upper = upper().begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { TX[U[coeffI]] += Upper[coeffI]*X[L[coeffI]]; TX[L[coeffI]] += Upper[coeffI]*X[U[coeffI]]; @@ -347,7 +347,7 @@ void BlockLduMatrix::TmulCore { const scalar* const __restrict__ Lower = lower().begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { TX[U[coeffI]] += Lower[coeffI]*X[L[coeffI]]; TX[L[coeffI]] += Lower[coeffI]*X[U[coeffI]]; @@ -359,7 +359,7 @@ void BlockLduMatrix::TmulCore const scalar* const __restrict__ Lower = lower().begin(); const scalar* const __restrict__ Upper = upper().begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { TX[U[coeffI]] += Upper[coeffI]*X[L[coeffI]]; TX[L[coeffI]] += Lower[coeffI]*X[U[coeffI]]; @@ -409,12 +409,12 @@ tmp BlockLduMatrix::H(const scalarField& x) const scalar* __restrict__ R = result.begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { R[U[coeffI]] -= Upper[coeffI]*X[U[coeffI]]; } - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { R[L[coeffI]] -= Upper[coeffI]*X[L[coeffI]]; } @@ -425,12 +425,12 @@ tmp BlockLduMatrix::H(const scalarField& x) const scalar* __restrict__ R = result.begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { R[U[coeffI]] -= Lower[coeffI]*X[U[coeffI]]; } - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { R[L[coeffI]] -= Lower[coeffI]*X[L[coeffI]]; } @@ -443,12 +443,12 @@ tmp BlockLduMatrix::H(const scalarField& x) const scalar* __restrict__ R = result.begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { R[U[coeffI]] -= Upper[coeffI]*X[U[coeffI]]; } - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { R[L[coeffI]] -= Lower[coeffI]*X[L[coeffI]]; } @@ -480,7 +480,7 @@ tmp BlockLduMatrix::faceH(const scalarField& x) const scalar* __restrict__ R = result.begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { R[coeffI] = Upper[coeffI]*(X[U[coeffI]] - X[L[coeffI]]); } @@ -496,7 +496,7 @@ tmp BlockLduMatrix::faceH(const scalarField& x) const scalar* __restrict__ R = result.begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { R[coeffI] = Lower[coeffI]*(X[U[coeffI]] - X[L[coeffI]]); } @@ -514,9 +514,11 @@ tmp BlockLduMatrix::faceH(const scalarField& x) const scalar* __restrict__ R = result.begin(); - for (register label coeffI = 0; coeffI < upper().size(); coeffI++) + for (label coeffI = 0; coeffI < upper().size(); coeffI++) { - R[coeffI] = Upper[coeffI]*X[U[coeffI]] - Lower[coeffI]*X[L[coeffI]]; + R[coeffI] = + Upper[coeffI]*X[U[coeffI]] + - Lower[coeffI]*X[L[coeffI]]; } } } diff --git a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockCholeskyPrecon/BlockCholeskyPrecon.C b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockCholeskyPrecon/BlockCholeskyPrecon.C index 89f53d002..1a021e5a6 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockCholeskyPrecon/BlockCholeskyPrecon.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockCholeskyPrecon/BlockCholeskyPrecon.C @@ -826,7 +826,7 @@ void Foam::BlockCholeskyPrecon::ILUmultiply const unallocLabelList& lowerAddr = this->matrix_.lduAddr().lowerAddr(); const unallocLabelList& losortAddr = this->matrix_.lduAddr().losortAddr(); - register label losortCoeff; + label losortCoeff; forAll (lower, coeffI) { @@ -875,7 +875,7 @@ void Foam::BlockCholeskyPrecon::ILUmultiplyTranspose const unallocLabelList& lowerAddr = this->matrix_.lduAddr().lowerAddr(); const unallocLabelList& losortAddr = this->matrix_.lduAddr().losortAddr(); - register label losortCoeff; + label losortCoeff; //HJ Not sure if the coefficient itself needs to be transposed. // HJ, 30/Oct/2007 diff --git a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockGaussSeidelPrecon/BlockGaussSeidelPrecon.C b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockGaussSeidelPrecon/BlockGaussSeidelPrecon.C index 391cb1535..1d9fd649f 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockGaussSeidelPrecon/BlockGaussSeidelPrecon.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockGaussSeidelPrecon/BlockGaussSeidelPrecon.C @@ -148,10 +148,10 @@ void Foam::BlockGaussSeidelPrecon::BlockSweep true // switch to lhs of system ); - register label fStart, fEnd, curCoeff; + label fStart, fEnd, curCoeff; // Forward sweep - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { Type& curX = x[rowI]; @@ -181,7 +181,7 @@ void Foam::BlockGaussSeidelPrecon::BlockSweep } // Reverse sweep - for (register label rowI = nRows - 1; rowI >= 0; rowI--) + for (label rowI = nRows - 1; rowI >= 0; rowI--) { Type& curX = x[rowI]; @@ -249,10 +249,10 @@ void Foam::BlockGaussSeidelPrecon::BlockSweep true // switch to lhs of system ); - register label fStart, fEnd, curCoeff; + label fStart, fEnd, curCoeff; // Forward sweep - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { Type& curX = x[rowI]; @@ -280,7 +280,7 @@ void Foam::BlockGaussSeidelPrecon::BlockSweep } // Reverse sweep - for (register label rowI = nRows - 1; rowI >= 0; rowI--) + for (label rowI = nRows - 1; rowI >= 0; rowI--) { Type& curX = x[rowI]; diff --git a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUC0Precon/BlockILUC0Precon.C b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUC0Precon/BlockILUC0Precon.C index e1cc04e8b..e1895c9b4 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUC0Precon/BlockILUC0Precon.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUC0Precon/BlockILUC0Precon.C @@ -88,12 +88,12 @@ void Foam::BlockILUC0Precon::calcActiveTypeFactorization // Define start and end face ("virtual" face when extended addressing // is used) of this row/column. - register label fStart, fEnd, fLsrStart, fLsrEnd; + label fStart, fEnd, fLsrStart, fLsrEnd; // Crout LU factorization // Row by row loop (k - loop). - for (register label rowI = 0; rowI < nRows; ++rowI) + for (label rowI = 0; rowI < nRows; ++rowI) { // Start and end of k-th row (upper) and k-th column (lower) fStart = ownStartPtr[rowI]; @@ -103,7 +103,7 @@ void Foam::BlockILUC0Precon::calcActiveTypeFactorization zDiag = diagPtr[rowI]; // Initialize temporary working row and column fields - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Note: z addressed by neighbour of face (column index for // upper) @@ -118,13 +118,13 @@ void Foam::BlockILUC0Precon::calcActiveTypeFactorization // Lower/upper coeff loop (i - loop) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; @@ -137,14 +137,14 @@ void Foam::BlockILUC0Precon::calcActiveTypeFactorization ); // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; // Upper coeff loop (additional loop to avoid checking the // existence of certain upper coeffs) for ( // Diagonal is already updated (losortCoeff + 1 = start) - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) @@ -168,10 +168,10 @@ void Foam::BlockILUC0Precon::calcActiveTypeFactorization diagRowI = mult.inverse(zDiag); // Index for updating L and U - register label zwIndex; + label zwIndex; // Update upper and lower coeffs - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Get index for current face zwIndex = uPtr[faceI]; @@ -192,23 +192,23 @@ void Foam::BlockILUC0Precon::calcActiveTypeFactorization // this step (for this row and column) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; for ( - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) @@ -369,8 +369,8 @@ void Foam::BlockILUC0Precon::LUSubstitute // Initialize x field x = b; - register label losortCoeffI; - register label rowI; + label losortCoeffI; + label rowI; // Forward substitution loop forAll (lower, coeffI) @@ -451,8 +451,8 @@ void Foam::BlockILUC0Precon::LUSubstituteT ); } - register label losortCoeffI; - register label rowI; + label losortCoeffI; + label rowI; // Forward substitution loop forAll (upper, coeffI) diff --git a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUC0Precon/scalarBlockILUC0Precon.C b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUC0Precon/scalarBlockILUC0Precon.C index cfbfdce59..e921d1c67 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUC0Precon/scalarBlockILUC0Precon.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUC0Precon/scalarBlockILUC0Precon.C @@ -90,12 +90,12 @@ void BlockILUC0Precon::calcActiveTypeFactorization // Define start and end face ("virtual" face when extended addressing is // used) of this row/column. - register label fStart, fEnd, fLsrStart, fLsrEnd; + label fStart, fEnd, fLsrStart, fLsrEnd; // Crout LU factorization // Row by row loop (k - loop). - for (register label rowI = 0; rowI < nRows; ++rowI) + for (label rowI = 0; rowI < nRows; ++rowI) { // Start and end of k-th row (upper) and k-th column (lower) fStart = ownStartPtr[rowI]; @@ -105,7 +105,7 @@ void BlockILUC0Precon::calcActiveTypeFactorization zDiag = diagPtr[rowI]; // Initialize temporary working row field - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Note: z addressed by neighbour of face (column index for // upper), w addressed by neighbour of face (row index for @@ -121,13 +121,13 @@ void BlockILUC0Precon::calcActiveTypeFactorization // Lower/upper coeff loop (i - loop) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; @@ -136,14 +136,14 @@ void BlockILUC0Precon::calcActiveTypeFactorization zDiag -= lowerPtr[losortCoeff]*upperPtr[losortCoeff]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; // Upper coeff loop (additional loop to avoid checking the // existence of certain upper coeffs) for ( // Diagonal is already updated (losortCoeff + 1 = start) - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) @@ -158,10 +158,10 @@ void BlockILUC0Precon::calcActiveTypeFactorization diagRowI = 1.0/zDiag; // Index for updating L and U - register label zwIndex; + label zwIndex; // Update upper and lower coeffs - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Get index for current face zwIndex = uPtr[faceI]; @@ -178,23 +178,23 @@ void BlockILUC0Precon::calcActiveTypeFactorization // this step (for this row and column) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; for ( - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) diff --git a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUCpPrecon/BlockILUCpPrecon.C b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUCpPrecon/BlockILUCpPrecon.C index 5177a122b..d38012486 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUCpPrecon/BlockILUCpPrecon.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUCpPrecon/BlockILUCpPrecon.C @@ -91,12 +91,12 @@ void Foam::BlockILUCpPrecon::calcActiveTypeFactorization // Define start and end face ("virtual" face when extended addressing // is used) of this row/column. - register label fStart, fEnd, fLsrStart, fLsrEnd; + label fStart, fEnd, fLsrStart, fLsrEnd; // Crout LU factorization // Row by row loop (k - loop). - for (register label rowI = 0; rowI < nRows; ++rowI) + for (label rowI = 0; rowI < nRows; ++rowI) { // Start and end of k-th row (upper) and k-th column (lower) fStart = ownStartPtr[rowI]; @@ -106,7 +106,7 @@ void Foam::BlockILUCpPrecon::calcActiveTypeFactorization zDiag = diagPtr[rowI]; // Initialize temporary working row and column fields - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Note: z addressed by neighbour of face (column index for // upper) @@ -121,13 +121,13 @@ void Foam::BlockILUCpPrecon::calcActiveTypeFactorization // Lower/upper coeff loop (i - loop) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; @@ -140,14 +140,14 @@ void Foam::BlockILUCpPrecon::calcActiveTypeFactorization ); // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; // Upper coeff loop (additional loop to avoid checking the // existence of certain upper coeffs) for ( // Diagonal is already updated (losortCoeff + 1 = start) - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) @@ -171,10 +171,10 @@ void Foam::BlockILUCpPrecon::calcActiveTypeFactorization diagRowI = mult.inverse(zDiag); // Index for updating L and U - register label zwIndex; + label zwIndex; // Update upper and lower coeffs - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Get index for current face zwIndex = uPtr[faceI]; @@ -195,23 +195,23 @@ void Foam::BlockILUCpPrecon::calcActiveTypeFactorization // this step (for this row and column) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; for ( - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) @@ -375,8 +375,8 @@ void Foam::BlockILUCpPrecon::LUSubstitute // Initialize x field x = b; - register label losortCoeffI; - register label rowI; + label losortCoeffI; + label rowI; // Forward substitution loop forAll (lower, coeffI) @@ -457,8 +457,8 @@ void Foam::BlockILUCpPrecon::LUSubstituteT ); } - register label losortCoeffI; - register label rowI; + label losortCoeffI; + label rowI; // Forward substitution loop forAll (upper, coeffI) diff --git a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUCpPrecon/scalarBlockILUCpPrecon.C b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUCpPrecon/scalarBlockILUCpPrecon.C index f8dd938b2..ee812b4a2 100644 --- a/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUCpPrecon/scalarBlockILUCpPrecon.C +++ b/src/foam/matrices/blockLduMatrix/BlockLduPrecons/BlockILUCpPrecon/scalarBlockILUCpPrecon.C @@ -90,12 +90,12 @@ void BlockILUCpPrecon::calcActiveTypeFactorization // Define start and end face ("virtual" face when extended addressing is // used) of this row/column. - register label fStart, fEnd, fLsrStart, fLsrEnd; + label fStart, fEnd, fLsrStart, fLsrEnd; // Crout LU factorization // Row by row loop (k - loop). - for (register label rowI = 0; rowI < nRows; ++rowI) + for (label rowI = 0; rowI < nRows; ++rowI) { // Start and end of k-th row (upper) and k-th column (lower) fStart = ownStartPtr[rowI]; @@ -105,7 +105,7 @@ void BlockILUCpPrecon::calcActiveTypeFactorization zDiag = diagPtr[rowI]; // Initialize temporary working row field - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Note: z addressed by neighbour of face (column index for // upper), w addressed by neighbour of face (row index for @@ -121,13 +121,13 @@ void BlockILUCpPrecon::calcActiveTypeFactorization // Lower/upper coeff loop (i - loop) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; @@ -136,14 +136,14 @@ void BlockILUCpPrecon::calcActiveTypeFactorization zDiag -= lowerPtr[losortCoeff]*upperPtr[losortCoeff]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; // Upper coeff loop (additional loop to avoid checking the // existence of certain upper coeffs) for ( // Diagonal is already updated (losortCoeff + 1 = start) - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) @@ -158,10 +158,10 @@ void BlockILUCpPrecon::calcActiveTypeFactorization diagRowI = 1.0/zDiag; // Index for updating L and U - register label zwIndex; + label zwIndex; // Update upper and lower coeffs - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Get index for current face zwIndex = uPtr[faceI]; @@ -178,23 +178,23 @@ void BlockILUCpPrecon::calcActiveTypeFactorization // this step (for this row and column) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; for ( - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) diff --git a/src/foam/matrices/lduMatrix/lduAddressing/extendedLduAddressing/extendedLduAddressing.C b/src/foam/matrices/lduMatrix/lduAddressing/extendedLduAddressing/extendedLduAddressing.C index 8557e0498..36a62ae5f 100644 --- a/src/foam/matrices/lduMatrix/lduAddressing/extendedLduAddressing/extendedLduAddressing.C +++ b/src/foam/matrices/lduMatrix/lduAddressing/extendedLduAddressing/extendedLduAddressing.C @@ -237,7 +237,7 @@ void Foam::extendedLduAddressing::calcFaceMap() const // Loop through extended neighbouring faces (upper matrix coeffs) for ( - register label extFaceI = startLabel; + label extFaceI = startLabel; extFaceI < endLabel; ++extFaceI ) diff --git a/src/foam/matrices/lduMatrix/lduMatrix/lduMatrixATmul.C b/src/foam/matrices/lduMatrix/lduMatrix/lduMatrixATmul.C index a01767461..60670c230 100644 --- a/src/foam/matrices/lduMatrix/lduMatrix/lduMatrixATmul.C +++ b/src/foam/matrices/lduMatrix/lduMatrix/lduMatrixATmul.C @@ -86,8 +86,8 @@ void Foam::lduMatrix::AmulCore { const scalar* const __restrict__ diagPtr = diag().begin(); - register const label nCells = diag().size(); - for (register label cell=0; cell Foam::lduMatrix::H1() const const scalar* __restrict__ lowerPtr = lower().begin(); const scalar* __restrict__ upperPtr = upper().begin(); - register const label nOdcIs = upper().size(); + const label nOdcIs = upper().size(); - for (register label odcI = 0; odcI < nOdcIs; odcI++) + for (label odcI = 0; odcI < nOdcIs; odcI++) { H1Ptr[uPtr[odcI]] -= lowerPtr[odcI]; H1Ptr[lPtr[odcI]] -= upperPtr[odcI]; diff --git a/src/foam/matrices/lduMatrix/lduMatrix/lduMatrixTemplates.C b/src/foam/matrices/lduMatrix/lduMatrix/lduMatrixTemplates.C index d363dbcf7..e034f039d 100644 --- a/src/foam/matrices/lduMatrix/lduMatrix/lduMatrixTemplates.C +++ b/src/foam/matrices/lduMatrix/lduMatrix/lduMatrixTemplates.C @@ -52,9 +52,9 @@ Foam::tmp > Foam::lduMatrix::H(const Field& psi) const const scalar* __restrict__ lowerPtr = lower().begin(); const scalar* __restrict__ upperPtr = upper().begin(); - register const label nFaces = upper().size(); + const label nFaces = upper().size(); - for (register label face=0; face& psi) const const unallocLabelList& l = lduAddr().lowerAddr(); const unallocLabelList& u = lduAddr().upperAddr(); - for (register label face=0; face=0; face--) + for (label face=nFacesM1; face>=0; face--) { wAPtr[lPtr[face]] -= rDPtr[lPtr[face]]*upperPtr[face]*wAPtr[uPtr[face]]; } diff --git a/src/foam/matrices/lduMatrix/preconditioners/DILUPreconditioner/DILUPreconditioner.C b/src/foam/matrices/lduMatrix/preconditioners/DILUPreconditioner/DILUPreconditioner.C index 2ac1277ac..80228c084 100644 --- a/src/foam/matrices/lduMatrix/preconditioners/DILUPreconditioner/DILUPreconditioner.C +++ b/src/foam/matrices/lduMatrix/preconditioners/DILUPreconditioner/DILUPreconditioner.C @@ -83,17 +83,17 @@ void Foam::DILUPreconditioner::calcReciprocalD const scalar* const __restrict__ upperPtr = matrix.upper().begin(); const scalar* const __restrict__ lowerPtr = matrix.lower().begin(); - register label nFaces = matrix.upper().size(); - for (register label face=0; face=0; face--) + for (label face=nFacesM1; face>=0; face--) { wAPtr[lPtr[face]] -= rDPtr[lPtr[face]]*upperPtr[face]*wAPtr[uPtr[face]]; @@ -169,25 +169,25 @@ void Foam::DILUPreconditioner::preconditionT const scalar* const __restrict__ upperPtr = matrix_.upper().begin(); const scalar* const __restrict__ lowerPtr = matrix_.lower().begin(); - register label nCells = wT.size(); - register label nFaces = matrix_.upper().size(); - register label nFacesM1 = nFaces - 1; + label nCells = wT.size(); + label nFaces = matrix_.upper().size(); + label nFacesM1 = nFaces - 1; - for (register label cell=0; cell=0; face--) + for (label face=nFacesM1; face>=0; face--) { sface = losortPtr[face]; wTPtr[lPtr[sface]] -= diff --git a/src/foam/matrices/lduMatrix/preconditioners/FDICPreconditioner/FDICPreconditioner.C b/src/foam/matrices/lduMatrix/preconditioners/FDICPreconditioner/FDICPreconditioner.C index 30aea1653..3e83232e0 100644 --- a/src/foam/matrices/lduMatrix/preconditioners/FDICPreconditioner/FDICPreconditioner.C +++ b/src/foam/matrices/lduMatrix/preconditioners/FDICPreconditioner/FDICPreconditioner.C @@ -69,21 +69,21 @@ Foam::FDICPreconditioner::FDICPreconditioner matrix_.lduAddr().lowerAddr().begin(); const scalar* const __restrict__ upperPtr = matrix_.upper().begin(); - register label nCells = rD_.size(); - register label nFaces = matrix_.upper().size(); + label nCells = rD_.size(); + label nFaces = matrix_.upper().size(); - for (register label face=0; face=0; face--) + for (label face=nFacesM1; face>=0; face--) { wAPtr[lPtr[face]] -= rDlUpperPtr[face]*wAPtr[uPtr[face]]; } diff --git a/src/foam/matrices/lduMatrix/preconditioners/diagonalPreconditioner/diagonalPreconditioner.C b/src/foam/matrices/lduMatrix/preconditioners/diagonalPreconditioner/diagonalPreconditioner.C index 8b2914df5..0ae60d5aa 100644 --- a/src/foam/matrices/lduMatrix/preconditioners/diagonalPreconditioner/diagonalPreconditioner.C +++ b/src/foam/matrices/lduMatrix/preconditioners/diagonalPreconditioner/diagonalPreconditioner.C @@ -64,10 +64,10 @@ Foam::diagonalPreconditioner::diagonalPreconditioner scalar* __restrict__ rDPtr = rD.begin(); const scalar* __restrict__ DPtr = matrix_.diag().begin(); - register label nCells = rD.size(); + label nCells = rD.size(); // Generate reciprocal diagonal - for (register label cell=0; cell=0; face--) + label nFacesM1 = nFaces - 1; + for (label face=nFacesM1; face>=0; face--) { - register label l = lPtr[face]; + label l = lPtr[face]; rAPtr[l] -= rDPtr[l]*upperPtr[face]*rAPtr[uPtr[face]]; } diff --git a/src/foam/matrices/lduMatrix/smoothers/DILU/DILUSmoother.C b/src/foam/matrices/lduMatrix/smoothers/DILU/DILUSmoother.C index 9132733fc..725b05002 100644 --- a/src/foam/matrices/lduMatrix/smoothers/DILU/DILUSmoother.C +++ b/src/foam/matrices/lduMatrix/smoothers/DILU/DILUSmoother.C @@ -98,17 +98,17 @@ void Foam::DILUSmoother::smooth rA *= rD_; - register label nFaces = matrix_.upper().size(); - for (register label face=0; face=0; face--) + label nFacesM1 = nFaces - 1; + for (label face=nFacesM1; face>=0; face--) { - register label l = lPtr[face]; + label l = lPtr[face]; rAPtr[l] -= rDPtr[l]*upperPtr[face]*rAPtr[uPtr[face]]; } diff --git a/src/foam/matrices/lduMatrix/smoothers/GaussSeidel/GaussSeidelSmoother.C b/src/foam/matrices/lduMatrix/smoothers/GaussSeidel/GaussSeidelSmoother.C index 11c9f6a2d..55696e73e 100644 --- a/src/foam/matrices/lduMatrix/smoothers/GaussSeidel/GaussSeidelSmoother.C +++ b/src/foam/matrices/lduMatrix/smoothers/GaussSeidel/GaussSeidelSmoother.C @@ -72,23 +72,23 @@ void Foam::GaussSeidelSmoother::smooth const label nSweeps ) { - register scalar* __restrict__ xPtr = x.begin(); + scalar* __restrict__ xPtr = x.begin(); - register const label nCells = x.size(); + const label nCells = x.size(); scalarField bPrime(nCells); - register scalar* __restrict__ bPrimePtr = bPrime.begin(); + scalar* __restrict__ bPrimePtr = bPrime.begin(); - register const scalar* const __restrict__ diagPtr = matrix.diag().begin(); - register const scalar* const __restrict__ upperPtr = + const scalar* const __restrict__ diagPtr = matrix.diag().begin(); + const scalar* const __restrict__ upperPtr = matrix.upper().begin(); - register const scalar* const __restrict__ lowerPtr = + const scalar* const __restrict__ lowerPtr = matrix.lower().begin(); - register const label* const __restrict__ uPtr = + const label* const __restrict__ uPtr = matrix.lduAddr().upperAddr().begin(); - register const label* const __restrict__ ownStartPtr = + const label* const __restrict__ ownStartPtr = matrix.lduAddr().ownerStartAddr().begin(); @@ -133,11 +133,11 @@ void Foam::GaussSeidelSmoother::smooth true // switch to lhs ); - register scalar curX; - register label fStart; - register label fEnd = ownStartPtr[0]; + scalar curX; + label fStart; + label fEnd = ownStartPtr[0]; - for (register label cellI = 0; cellI < nCells; cellI++) + for (label cellI = 0; cellI < nCells; cellI++) { // Start and end of this row fStart = fEnd; @@ -147,7 +147,7 @@ void Foam::GaussSeidelSmoother::smooth curX = bPrimePtr[cellI]; // Accumulate the owner product side - for (register label curFace = fStart; curFace < fEnd; curFace++) + for (label curFace = fStart; curFace < fEnd; curFace++) { curX -= upperPtr[curFace]*xPtr[uPtr[curFace]]; } @@ -156,7 +156,7 @@ void Foam::GaussSeidelSmoother::smooth curX /= diagPtr[cellI]; // Distribute the neighbour side using current x - for (register label curFace = fStart; curFace < fEnd; curFace++) + for (label curFace = fStart; curFace < fEnd; curFace++) { bPrimePtr[uPtr[curFace]] -= lowerPtr[curFace]*curX; } diff --git a/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/SAMGInterfaces/ggiSAMGInterface/ggiSAMGInterface.C b/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/SAMGInterfaces/ggiSAMGInterface/ggiSAMGInterface.C index e49555890..687dbcb82 100644 --- a/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/SAMGInterfaces/ggiSAMGInterface/ggiSAMGInterface.C +++ b/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/SAMGInterfaces/ggiSAMGInterface/ggiSAMGInterface.C @@ -341,7 +341,7 @@ Foam::ggiSAMGInterface::ggiSAMGInterface for ( - register label pfI = patchRowStart[patchFace]; + label pfI = patchRowStart[patchFace]; pfI < patchRowStart[patchFace + 1]; pfI++ ) @@ -1484,7 +1484,7 @@ void Foam::ggiSAMGInterface::expandCrMatrixToZone(crMatrix& patchP) const List cols(patchCrAddr.nRows()); List coeffs(patchCrAddr.nRows()); - for (register label faceI = 0; faceI < patchCrAddr.nRows(); faceI++) + for (label faceI = 0; faceI < patchCrAddr.nRows(); faceI++) { // Unpack row const label rowStart = patchRowStart[faceI]; @@ -1496,7 +1496,7 @@ void Foam::ggiSAMGInterface::expandCrMatrixToZone(crMatrix& patchP) const coeffs[faceI].setSize(rowLength); scalarField& curCoeffs = coeffs[faceI]; - for (register label coeffI = 0; coeffI < rowLength; coeffI++) + for (label coeffI = 0; coeffI < rowLength; coeffI++) { curCols[coeffI] = patchCol[rowStart + coeffI]; curCoeffs[coeffI] = patchCoeff[rowStart + coeffI]; diff --git a/src/foam/matrices/lduMatrix/solvers/PBiCG/PBiCG.C b/src/foam/matrices/lduMatrix/solvers/PBiCG/PBiCG.C index a1cf6ae5a..7825a9996 100644 --- a/src/foam/matrices/lduMatrix/solvers/PBiCG/PBiCG.C +++ b/src/foam/matrices/lduMatrix/solvers/PBiCG/PBiCG.C @@ -72,7 +72,7 @@ Foam::lduSolverPerformance Foam::PBiCG::solve // --- Setup class containing solver performance data lduSolverPerformance solverPerf(typeName, fieldName()); - register label nCells = x.size(); + label nCells = x.size(); scalar* __restrict__ xPtr = x.begin(); @@ -147,7 +147,7 @@ Foam::lduSolverPerformance Foam::PBiCG::solve if (solverPerf.nIterations() == 0) { - for (register label cell=0; cell largestCoeff) { @@ -102,16 +102,16 @@ void Foam::scalarSquareMatrix::LUDecompose vv[i] = 1.0/largestCoeff; } - for (register label j=0; j largestCoeff) { @@ -57,7 +57,7 @@ void Foam::scalarSquareMatrix::solve { //Info<< "Pivoted on " << i << " " << iMax << endl; - for (register label k=i; k=i; k--) + for (label k=n-1; k>=i; k--) { tmpMatrix[j][k] -= tmpMatrix[i][k]*tmpMatrix[j][i]/tmpMatrix[i][i]; @@ -86,11 +86,11 @@ void Foam::scalarSquareMatrix::solve } // Back-substitution - for (register label j=n-1; j>=0; j--) + for (label j=n-1; j>=0; j--) { Type ntempvec = pTraits::zero; - for (register label k=j+1; k=0; i--) + for (label i=n-1; i>=0; i--) { Type sum = sourceSol[i]; const scalar* __restrict__ luMatrixi = luMatrix[i]; - for (register label j=i+1; j::multiply mult; - for (register label i = 0; i < f1.size(); i++) + for (label i = 0; i < f1.size(); i++) { result += mult(f1[i], f2[i]); } diff --git a/src/foam/primitives/VectorN/DiagTensorNI.H b/src/foam/primitives/VectorN/DiagTensorNI.H index 6a1147e7a..13b8007e3 100644 --- a/src/foam/primitives/VectorN/DiagTensorNI.H +++ b/src/foam/primitives/VectorN/DiagTensorNI.H @@ -502,8 +502,8 @@ inline DiagTensorN diag(const DiagTensorN& dt) // template // inline Cmpt sum(const DiagTensorN& dt) // { -// Cmpt result=Cmpt::zero; -// for(register label i=0; i::nComponents; i++) +// Cmpt result = Cmpt::zero; +// for(label i = 0; i < DiagTensorN::nComponents; i++) // { // result += dt[i]; // } diff --git a/src/foam/primitives/VectorN/SphericalTensorN.H b/src/foam/primitives/VectorN/SphericalTensorN.H index 05e0e42d2..b1cedf4fb 100644 --- a/src/foam/primitives/VectorN/SphericalTensorN.H +++ b/src/foam/primitives/VectorN/SphericalTensorN.H @@ -101,10 +101,16 @@ public: // Access //- Return component - inline const Cmpt& ii() const; + inline const Cmpt& ii() const + { + return this->v_[II]; + } //- Return access to component - inline Cmpt& ii(); + inline Cmpt& ii() + { + return this->v_[II]; + } //- Diagonal diff --git a/src/foam/primitives/VectorN/VectorNI.H b/src/foam/primitives/VectorN/VectorNI.H index efbc453c2..be300e65f 100644 --- a/src/foam/primitives/VectorN/VectorNI.H +++ b/src/foam/primitives/VectorN/VectorNI.H @@ -210,7 +210,7 @@ scaleRow(const VectorN& v, const Cmpt& c) // inline Cmpt sum(const VectorN& v) // { // Cmpt result = pTraits::zero; -// for(register label i=0; i::nComponents; i++) +// for(label i = 0; i < VectorN::nComponents; i++) // { // result += v[i]; // } diff --git a/src/foam/primitives/VectorN/expandContract/ExpandTensorNI.H b/src/foam/primitives/VectorN/expandContract/ExpandTensorNI.H index b0db92d85..f2be4e4dd 100644 --- a/src/foam/primitives/VectorN/expandContract/ExpandTensorNI.H +++ b/src/foam/primitives/VectorN/expandContract/ExpandTensorNI.H @@ -43,7 +43,7 @@ inline void contractScalar(Cmpt& result, const VectorN& t) { result = pTraits::zero; - for (register int i = 0; i < TensorN::rowLength; i++) + for (int i = 0; i < TensorN::rowLength; i++) { result += t[i]; } @@ -69,8 +69,8 @@ inline void contractScalar(Cmpt& result, const TensorN& t) { result = pTraits::zero; - register int j = 0; - for (register int i = 0; i < TensorN::rowLength; i++) + int j = 0; + for (int i = 0; i < TensorN::rowLength; i++) { result += t[j]; j += TensorN::rowLength + 1; @@ -97,7 +97,7 @@ inline void contractScalar(Cmpt& result, const DiagTensorN& t) { result = pTraits::zero; - for (register int i = 0; i < DiagTensorN::rowLength; i++) + for (int i = 0; i < DiagTensorN::rowLength; i++) { result += t[i]; } @@ -146,8 +146,8 @@ inline void contractLinear const TensorN& t ) { - register int j = 0; - for (register int i = 0; i < TensorN::rowLength; i++) + int j = 0; + for (int i = 0; i < TensorN::rowLength; i++) { result[i] = t[j]; j += TensorN::rowLength + 1; @@ -173,7 +173,7 @@ inline void contractLinear const DiagTensorN& t ) { - for (register int i = 0; i < DiagTensorN::rowLength; i++) + for (int i = 0; i < DiagTensorN::rowLength; i++) { result[i] = t[i]; } @@ -200,7 +200,7 @@ inline void contractLinear { for ( - register int i = 0; + int i = 0; i < SphericalTensorN::rowLength; i++ ) @@ -227,7 +227,7 @@ inline VectorN contractLinear template inline void expandScalar(VectorN& result, const Cmpt& v) { - for (register int i = 0; i < VectorN::nComponents; i++) + for (int i = 0; i < VectorN::nComponents; i++) { result[i] = v; } @@ -240,8 +240,8 @@ inline void expandScalar(TensorN& result, const Cmpt& v) { result = TensorN::zero; - register int j = 0; - for (register int i = 0; i < TensorN::rowLength; i++) + int j = 0; + for (int i = 0; i < TensorN::rowLength; i++) { result[j] = v; j += TensorN::rowLength + 1; @@ -253,7 +253,7 @@ inline void expandScalar(TensorN& result, const Cmpt& v) template inline void expandScalar(DiagTensorN& result, const Cmpt& v) { - for (register int i = 0; i < DiagTensorN::rowLength; i++) + for (int i = 0; i < DiagTensorN::rowLength; i++) { result[i] = v; } @@ -278,8 +278,8 @@ inline void expandLinear { result = TensorN::zero; - register int j = 0; - for (register int i = 0; i < TensorN::rowLength; i++) + int j = 0; + for (int i = 0; i < TensorN::rowLength; i++) { result[j] = v[i]; j += TensorN::rowLength + 1; @@ -294,7 +294,7 @@ inline void expandLinear const VectorN& v ) { - for (register int i = 0; i < DiagTensorN::rowLength; i++) + for (int i = 0; i < DiagTensorN::rowLength; i++) { result[i] = v[i]; } @@ -311,7 +311,7 @@ inline void expandLinear { result[0] = pTraits::zero; - for (register int i = 0; i < DiagTensorN::rowLength; i++) + for (int i = 0; i < DiagTensorN::rowLength; i++) { result[0] += v[i]; } @@ -330,9 +330,9 @@ inline void sumToDiag { result = VectorN::zero; - for (register int i = 0; i < TensorN::rowLength; i++) + for (int i = 0; i < TensorN::rowLength; i++) { - for (register int j = 0; j < TensorN::rowLength; j++) + for (int j = 0; j < TensorN::rowLength; j++) { result[i] += t(i, j); } @@ -360,9 +360,9 @@ inline void sumMagToDiag { result = VectorN::zero; - for (register int i = 0; i < TensorN::rowLength; i++) + for (int i = 0; i < TensorN::rowLength; i++) { - for (register int j = 0; j < TensorN::rowLength; j++) + for (int j = 0; j < TensorN::rowLength; j++) { result[i] += Foam::mag(t(i, j)); } diff --git a/src/foam/primitives/strings/fileName/fileName.C b/src/foam/primitives/strings/fileName/fileName.C index 89a4e1e88..c34a8ef02 100644 --- a/src/foam/primitives/strings/fileName/fileName.C +++ b/src/foam/primitives/strings/fileName/fileName.C @@ -105,7 +105,7 @@ bool Foam::fileName::clean() src < maxLen; ) { - register char c = operator[](src++); + char c = operator[](src++); if (prev == '/') { diff --git a/src/foam/primitives/strings/string/foamString.C b/src/foam/primitives/strings/string/foamString.C index 208921aca..1783e6e4e 100644 --- a/src/foam/primitives/strings/string/foamString.C +++ b/src/foam/primitives/strings/string/foamString.C @@ -38,7 +38,7 @@ const Foam::string Foam::string::null; Foam::string::size_type Foam::string::count(const char c) const { - register size_type cCount = 0; + size_type cCount = 0; for (const_iterator iter = begin(); iter != end(); ++iter) { @@ -105,10 +105,10 @@ bool Foam::string::removeRepeated(const char character) if (character && find(character) != npos) { - register string::size_type nChar=0; + string::size_type nChar=0; iterator iter2 = begin(); - register char prev = 0; + char prev = 0; for ( @@ -117,7 +117,7 @@ bool Foam::string::removeRepeated(const char character) iter1++ ) { - register char c = *iter1; + char c = *iter1; if (prev == c && c == character) { diff --git a/src/foam/primitives/strings/string/foamStringI.H b/src/foam/primitives/strings/string/foamStringI.H index 51f701283..7fb6e4018 100644 --- a/src/foam/primitives/strings/string/foamStringI.H +++ b/src/foam/primitives/strings/string/foamStringI.H @@ -79,7 +79,7 @@ inline bool Foam::string::stripInvalid(string& str) { if (!valid(str)) { - register size_type nValid = 0; + size_type nValid = 0; iterator iter2 = str.begin(); for @@ -89,7 +89,7 @@ inline bool Foam::string::stripInvalid(string& str) iter1++ ) { - register char c = *iter1; + char c = *iter1; if (String::valid(c)) { diff --git a/src/lduSolvers/amg/amgPolicy/selectionAmgPolicy.C b/src/lduSolvers/amg/amgPolicy/selectionAmgPolicy.C index 5b27aa5bd..55dab38eb 100644 --- a/src/lduSolvers/amg/amgPolicy/selectionAmgPolicy.C +++ b/src/lduSolvers/amg/amgPolicy/selectionAmgPolicy.C @@ -175,12 +175,12 @@ void Foam::selectionAmgPolicy::calcCoarsening() // Select the strongest coefficient in each row // (There is no need to operate in rows in the first 2 loops, but the // code is left row-wise for clarity) - for (register label i = 0; i < nRows; i++) + for (label i = 0; i < nRows; i++) { const scalar signDiag = sign(diag[i]); // Do lower triangle coefficient for the row - for (register label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) + for (label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) { const scalar magAij = mag(min(signDiag*lower[losortAddr[jp]], 0)); @@ -191,7 +191,7 @@ void Foam::selectionAmgPolicy::calcCoarsening() } // Do upper triangle coefficient for the row - for (register label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) + for (label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) { const scalar magAij = mag(min(signDiag*upper[ip], 0)); @@ -209,12 +209,12 @@ void Foam::selectionAmgPolicy::calcCoarsening() // (epsilonStrongCoeff_) labelList strongCoeffCounter(nRows, 0); - for (register label i = 0; i < nRows; i++) + for (label i = 0; i < nRows; i++) { const scalar signDiag = sign(diag[i]); // Do lower triangle coefficient for the row - for (register label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) + for (label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) { const scalar magAij = mag(min(signDiag*lower[losortAddr[jp]], 0)); @@ -251,12 +251,12 @@ void Foam::selectionAmgPolicy::calcCoarsening() strongCoeffCounter = 0; // Fill in the empty arrays of the strong matrix - for (register label i = 0; i < nRows; i++) + for (label i = 0; i < nRows; i++) { const scalar signDiag = sign(diag[i]); // Do lower triangle coefficient for the row - for (register label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) + for (label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) { const scalar magAij = mag(min(signDiag*lower[losortAddr[jp]], 0)); @@ -518,7 +518,7 @@ void Foam::selectionAmgPolicy::calcCoarsening() // Start row assembly pRow[0] = 0; - for (register label i = 0; i < nRows; i++) + for (label i = 0; i < nRows; i++) { label rowCount = pRow[i]; @@ -529,7 +529,7 @@ void Foam::selectionAmgPolicy::calcCoarsening() signDii = sign(diag[i]); // Do lower triangle coefficient for the row - for (register label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) + for (label jp = losortStart[i]; jp < losortStart[i + 1]; jp++) { // Adjust sign of off-diag coeff Dij = signDii*lower[losortAddr[jp]]; @@ -541,7 +541,7 @@ void Foam::selectionAmgPolicy::calcCoarsening() } // Do upper triangle coefficient for the row - for (register label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) + for (label ip = ownerStart[i]; ip < ownerStart[i + 1]; ip++) { // Adjust sign of off-diag coeff Dij = signDii*upper[ip]; @@ -561,7 +561,7 @@ void Foam::selectionAmgPolicy::calcCoarsening() for ( - register label sip = strongRow[i]; + label sip = strongRow[i]; sip < strongRow[i + 1]; sip++ ) @@ -577,7 +577,7 @@ void Foam::selectionAmgPolicy::calcCoarsening() // Calculate interpolation weights. for ( - register label sip = strongRow[i]; + label sip = strongRow[i]; sip < strongRow[i + 1]; sip++ ) @@ -644,7 +644,7 @@ void Foam::selectionAmgPolicy::calcCoarsening() const labelList& prolongationRow = Pptr_->crAddr().rowStart(); const scalarField& prolongationCoeff = Pptr_->coeffs(); - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { if (prolongationRow[rowI] == prolongationRow[rowI + 1]) { diff --git a/src/lduSolvers/lduPrecon/CholeskyPrecon/CholeskyPrecon.C b/src/lduSolvers/lduPrecon/CholeskyPrecon/CholeskyPrecon.C index cd34c6ae9..77dfd036f 100644 --- a/src/lduSolvers/lduPrecon/CholeskyPrecon/CholeskyPrecon.C +++ b/src/lduSolvers/lduPrecon/CholeskyPrecon/CholeskyPrecon.C @@ -165,7 +165,7 @@ void Foam::CholeskyPrecon::precondition // Note: multiplication over-write x: no need to initialise // HJ, and VV, 19/Jun/2017 - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { xPtr[rowI] = bPtr[rowI]*preconDiagPtr[rowI]; } @@ -190,7 +190,7 @@ void Foam::CholeskyPrecon::precondition const label nCoeffs = matrix_.upper().size(); // Forward sweep - for (register label coeffI = 0; coeffI < nCoeffs; coeffI++) + for (label coeffI = 0; coeffI < nCoeffs; coeffI++) { xPtr[uPtr[coeffI]] -= preconDiagPtr[uPtr[coeffI]]* @@ -198,7 +198,7 @@ void Foam::CholeskyPrecon::precondition } // Reverse sweep - for (register label coeffI = nCoeffs - 1; coeffI >= 0; coeffI--) + for (label coeffI = nCoeffs - 1; coeffI >= 0; coeffI--) { xPtr[lPtr[coeffI]] -= preconDiagPtr[lPtr[coeffI]]* diff --git a/src/lduSolvers/lduPrecon/ILU0/ILU0.C b/src/lduSolvers/lduPrecon/ILU0/ILU0.C index 06db8143c..31676ce51 100644 --- a/src/lduSolvers/lduPrecon/ILU0/ILU0.C +++ b/src/lduSolvers/lduPrecon/ILU0/ILU0.C @@ -202,7 +202,7 @@ void Foam::ILU0::precondition // Note: multiplication over-write x: no need to initialise // HJ, and VV, 19/Jun/2017 - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { xPtr[rowI] = bPtr[rowI]*preconDiagPtr[rowI]; } @@ -308,7 +308,7 @@ void Foam::ILU0::preconditionT // Note: multiplication over-write x: no need to initialise // HJ, and VV, 19/Jun/2017 - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { xPtr[rowI] = bPtr[rowI]*preconDiagPtr[rowI]; } diff --git a/src/lduSolvers/lduPrecon/ILUC0/ILUC0.C b/src/lduSolvers/lduPrecon/ILUC0/ILUC0.C index ca830b52a..fb8ecc1d7 100644 --- a/src/lduSolvers/lduPrecon/ILUC0/ILUC0.C +++ b/src/lduSolvers/lduPrecon/ILUC0/ILUC0.C @@ -94,12 +94,12 @@ void Foam::ILUC0::calcFactorization() // Define start and end face of this row/column, and number of non zero // off diagonal entries - register label fStart, fEnd, fLsrStart, fLsrEnd; + label fStart, fEnd, fLsrStart, fLsrEnd; // Crout LU factorization // Row by row loop (k - loop). - for (register label rowI = 0; rowI < nRows; ++rowI) + for (label rowI = 0; rowI < nRows; ++rowI) { // Start and end of k-th row (upper) and k-th column (lower) fStart = ownStartPtr[rowI]; @@ -109,7 +109,7 @@ void Foam::ILUC0::calcFactorization() zDiag_ = diagPtr[rowI]; // Initialize temporary working row field - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Note: z addressed by neighbour of face (column index for // upper), w addressed by neighbour of face (row index for @@ -125,13 +125,13 @@ void Foam::ILUC0::calcFactorization() // Lower coeff loop (first i - loop) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortIndex = lsrPtr[faceLsrI]; + const label losortIndex = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortIndex]; @@ -140,14 +140,14 @@ void Foam::ILUC0::calcFactorization() zDiag_ -= lowerPtr[losortIndex]*upperPtr[losortIndex]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; // Upper coeff loop (additional loop to avoid checking the // existence of certain upper coeffs) for ( // Diagonal is already updated (losortIndex + 1 = start) - register label faceI = losortIndex + 1; + label faceI = losortIndex + 1; faceI < fEndRowi; ++faceI ) @@ -162,10 +162,10 @@ void Foam::ILUC0::calcFactorization() diagRowI = 1.0/zDiag_; // Index for updating L and U - register label zwIndex; + label zwIndex; // Update upper and lower coeffs - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Get index for current face zwIndex = uPtr[faceI]; @@ -182,23 +182,23 @@ void Foam::ILUC0::calcFactorization() // this step (for this row and column) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortIndex = lsrPtr[faceLsrI]; + const label losortIndex = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortIndex]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; for ( - register label faceI = losortIndex + 1; + label faceI = losortIndex + 1; faceI < fEndRowi; ++faceI ) @@ -303,8 +303,8 @@ void Foam::ILUC0::precondition // Initialize x field x = b; - register label losortIndexI; - register label rowI; + label losortIndexI; + label rowI; // Forward substitution loop forAll (preconLower_, coeffI) @@ -379,8 +379,8 @@ void Foam::ILUC0::preconditionT x[i] = b[i]*preconDiag_[i]; } - register label losortIndexI; - register label rowI; + label losortIndexI; + label rowI; // Forward substitution loop forAll (preconUpper_, coeffI) diff --git a/src/lduSolvers/lduPrecon/ILUCp/ILUCp.C b/src/lduSolvers/lduPrecon/ILUCp/ILUCp.C index 628f83c26..4ce1c5602 100644 --- a/src/lduSolvers/lduPrecon/ILUCp/ILUCp.C +++ b/src/lduSolvers/lduPrecon/ILUCp/ILUCp.C @@ -98,12 +98,12 @@ void Foam::ILUCp::calcFactorization() // Define start and end face ("virtual" face when extended addressing // is used) of this row/column. - register label fStart, fEnd, fLsrStart, fLsrEnd; + label fStart, fEnd, fLsrStart, fLsrEnd; // Crout LU factorization // Row by row loop (k - loop). - for (register label rowI = 0; rowI < nRows; ++rowI) + for (label rowI = 0; rowI < nRows; ++rowI) { // Start and end of k-th row (upper) and k-th column (lower) fStart = ownStartPtr[rowI]; @@ -113,7 +113,7 @@ void Foam::ILUCp::calcFactorization() zDiag_ = diagPtr[rowI]; // Initialize temporary working row field - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Note: z addressed by neighbour of face (column index for // upper), w addressed by neighbour of face (row index for @@ -129,13 +129,13 @@ void Foam::ILUCp::calcFactorization() // Lower/upper coeff loop (i - loop) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; @@ -144,14 +144,14 @@ void Foam::ILUCp::calcFactorization() zDiag_ -= lowerPtr[losortCoeff]*upperPtr[losortCoeff]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; // Upper coeff loop (additional loop to avoid checking the // existence of certain upper coeffs) for ( // Diagonal is already updated (losortCoeff + 1 = start) - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) @@ -166,10 +166,10 @@ void Foam::ILUCp::calcFactorization() diagRowI = 1.0/zDiag_; // Index for updating L and U - register label zwIndex; + label zwIndex; // Update upper and lower coeffs - for (register label faceI = fStart; faceI < fEnd; ++faceI) + for (label faceI = fStart; faceI < fEnd; ++faceI) { // Get index for current face zwIndex = uPtr[faceI]; @@ -186,23 +186,23 @@ void Foam::ILUCp::calcFactorization() // this step (for this row and column) for ( - register label faceLsrI = fLsrStart; + label faceLsrI = fLsrStart; faceLsrI < fLsrEnd; ++faceLsrI ) { // Get losort coefficient for this face - const register label losortCoeff = lsrPtr[faceLsrI]; + const label losortCoeff = lsrPtr[faceLsrI]; // Get corresponding row index for upper (i label) const label i = lPtr[losortCoeff]; // Get end of row for cell i - const register label fEndRowi = ownStartPtr[i + 1]; + const label fEndRowi = ownStartPtr[i + 1]; for ( - register label faceI = losortCoeff + 1; + label faceI = losortCoeff + 1; faceI < fEndRowi; ++faceI ) @@ -291,8 +291,8 @@ void Foam::ILUCp::precondition // Initialize x field x = b; - register label losortCoeffI; - register label rowI; + label losortCoeffI; + label rowI; // Forward substitution loop forAll (lower, coeffI) @@ -370,8 +370,8 @@ void Foam::ILUCp::preconditionT x[i] = b[i]*preconDiag_[i]; } - register label losortCoeffI; - register label rowI; + label losortCoeffI; + label rowI; // Forward substitution loop forAll (upper, coeffI) diff --git a/src/lduSolvers/lduPrecon/symGaussSeidelPrecon/symGaussSeidelPrecon.C b/src/lduSolvers/lduPrecon/symGaussSeidelPrecon/symGaussSeidelPrecon.C index 961f216a5..c68d79059 100644 --- a/src/lduSolvers/lduPrecon/symGaussSeidelPrecon/symGaussSeidelPrecon.C +++ b/src/lduSolvers/lduPrecon/symGaussSeidelPrecon/symGaussSeidelPrecon.C @@ -112,7 +112,7 @@ void Foam::symGaussSeidelPrecon::precondition const label nRows = x.size(); - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { xPtr[rowI] = bPtr[rowI]/diagPtr[rowI]; } @@ -164,7 +164,7 @@ void Foam::symGaussSeidelPrecon::precondition } // Forward sweep - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { // lRow is equal to rowI scalar& curX = xPtr[rowI]; @@ -177,7 +177,7 @@ void Foam::symGaussSeidelPrecon::precondition fEnd = ownStartPtr[rowI + 1]; // Accumulate the owner product side - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { curX -= upperPtr[curCoeff]*xPtr[uPtr[curCoeff]]; } @@ -186,14 +186,14 @@ void Foam::symGaussSeidelPrecon::precondition curX /= diagPtr[rowI]; // Distribute the neighbour side using current x - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { bPrimePtr[uPtr[curCoeff]] -= lowerPtr[curCoeff]*curX; } } // Reverse sweep - for (register label rowI = nRows - 1; rowI >= 0; rowI--) + for (label rowI = nRows - 1; rowI >= 0; rowI--) { // lRow is equal to rowI scalar& curX = xPtr[rowI]; @@ -206,7 +206,7 @@ void Foam::symGaussSeidelPrecon::precondition fEnd = ownStartPtr[rowI + 1]; // Accumulate the owner product side - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { curX -= upperPtr[curCoeff]*xPtr[uPtr[curCoeff]]; } @@ -279,7 +279,7 @@ void Foam::symGaussSeidelPrecon::preconditionT } // Forward sweep - for (register label rowI = 0; rowI < nRows; rowI++) + for (label rowI = 0; rowI < nRows; rowI++) { // lRow is equal to rowI scalar& curX = xPtr[rowI]; @@ -292,7 +292,7 @@ void Foam::symGaussSeidelPrecon::preconditionT fEnd = ownStartPtr[rowI + 1]; // Accumulate the owner product side - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { // Transpose multiplication. HJ, 10/Jul/2007 curX -= lowerPtr[curCoeff]*xPtr[uPtr[curCoeff]]; @@ -302,7 +302,7 @@ void Foam::symGaussSeidelPrecon::preconditionT curX /= diagPtr[rowI]; // Distribute the neighbour side using current x - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { // Transpose multiplication. HJ, 10/Jul/2007 bPrimePtr[uPtr[curCoeff]] -= upperPtr[curCoeff]*curX; @@ -310,7 +310,7 @@ void Foam::symGaussSeidelPrecon::preconditionT } // Reverse sweep - for (register label rowI = nRows - 1; rowI >= 0; rowI--) + for (label rowI = nRows - 1; rowI >= 0; rowI--) { // lRow is equal to rowI scalar& curX = xPtr[rowI]; @@ -323,7 +323,7 @@ void Foam::symGaussSeidelPrecon::preconditionT fEnd = ownStartPtr[rowI + 1]; // Accumulate the owner product side - for (register label curCoeff = fStart; curCoeff < fEnd; curCoeff++) + for (label curCoeff = fStart; curCoeff < fEnd; curCoeff++) { // Transpose multiplication. HJ, 10/Jul/2007 curX -= lowerPtr[curCoeff]*xPtr[uPtr[curCoeff]]; diff --git a/src/sampling/meshToMeshInterpolation/meshToMesh/calculateMeshToMeshAddressing.C b/src/sampling/meshToMeshInterpolation/meshToMesh/calculateMeshToMeshAddressing.C index b7cbe707e..a9080982f 100644 --- a/src/sampling/meshToMeshInterpolation/meshToMesh/calculateMeshToMeshAddressing.C +++ b/src/sampling/meshToMeshInterpolation/meshToMesh/calculateMeshToMeshAddressing.C @@ -256,7 +256,7 @@ void meshToMesh::cellAddresses // point than the current cell // set curCell label to zero (start) - register label curCell = 0; + label curCell = 0; // set reference to cell to cell addressing const vectorField& centresFrom = fromMesh.cellCentres(); diff --git a/src/solidModels/contactModels/normalContactModels/dirichletNeumann/dirichletNeumann.C b/src/solidModels/contactModels/normalContactModels/dirichletNeumann/dirichletNeumann.C index 574fd0646..f62948f94 100644 --- a/src/solidModels/contactModels/normalContactModels/dirichletNeumann/dirichletNeumann.C +++ b/src/solidModels/contactModels/normalContactModels/dirichletNeumann/dirichletNeumann.C @@ -692,7 +692,7 @@ void dirichletNeumann::calcSlavePointPoints(const label slavePatchID) const faceList& lf = mesh.boundaryMesh()[slavePatchID].localFaces(); - register bool found = false; + bool found = false; forAll (lf, faceI) { diff --git a/src/solidModels/contactModels/normalContactModels/iterativePenalty/iterativePenalty.C b/src/solidModels/contactModels/normalContactModels/iterativePenalty/iterativePenalty.C index 31b20b7cb..05811448d 100644 --- a/src/solidModels/contactModels/normalContactModels/iterativePenalty/iterativePenalty.C +++ b/src/solidModels/contactModels/normalContactModels/iterativePenalty/iterativePenalty.C @@ -455,7 +455,7 @@ iterativePenalty::iterativePenalty const faceList& lf = mesh.boundaryMesh()[slavePatchID].localFaces(); - register bool found = false; + bool found = false; forAll (lf, faceI) { diff --git a/src/solidModels/contactModels/normalContactModels/standardPenalty/standardPenalty.C b/src/solidModels/contactModels/normalContactModels/standardPenalty/standardPenalty.C index ff6e0e56e..7f6ce61f3 100644 --- a/src/solidModels/contactModels/normalContactModels/standardPenalty/standardPenalty.C +++ b/src/solidModels/contactModels/normalContactModels/standardPenalty/standardPenalty.C @@ -362,7 +362,7 @@ standardPenalty::standardPenalty const faceList& lf = mesh.boundaryMesh()[slavePatchID].localFaces(); - register bool found = false; + bool found = false; forAll (lf, faceI) { diff --git a/src/solidModels/finiteVolume/gradSchemes/leastSquaresSolidInterfaceGrad/leastSquaresSolidInterfaceGrad.C b/src/solidModels/finiteVolume/gradSchemes/leastSquaresSolidInterfaceGrad/leastSquaresSolidInterfaceGrad.C index 66dc4988e..48d0b2ba2 100644 --- a/src/solidModels/finiteVolume/gradSchemes/leastSquaresSolidInterfaceGrad/leastSquaresSolidInterfaceGrad.C +++ b/src/solidModels/finiteVolume/gradSchemes/leastSquaresSolidInterfaceGrad/leastSquaresSolidInterfaceGrad.C @@ -146,8 +146,8 @@ leastSquaresSolidInterfaceGrad::calcGrad forAll(own, facei) { - register label ownFaceI = own[facei]; - register label neiFaceI = nei[facei]; + label ownFaceI = own[facei]; + label neiFaceI = nei[facei]; if (interfaceFacesMap[facei] > -SMALL) { diff --git a/src/thermophysicalModels/specie/thermo/janaf/janafThermo.C b/src/thermophysicalModels/specie/thermo/janaf/janafThermo.C index e5578a2b2..b80f1bdcf 100644 --- a/src/thermophysicalModels/specie/thermo/janaf/janafThermo.C +++ b/src/thermophysicalModels/specie/thermo/janaf/janafThermo.C @@ -71,7 +71,7 @@ Foam::janafThermo::janafThermo(Istream& is) for ( - register label coefLabel=0; + label coefLabel = 0; coefLabel::nCoeffs_; coefLabel++ ) @@ -81,7 +81,7 @@ Foam::janafThermo::janafThermo(Istream& is) for ( - register label coefLabel=0; + label coefLabel = 0; coefLabel::nCoeffs_; coefLabel++ ) @@ -112,7 +112,7 @@ Foam::Ostream& Foam::operator<< for ( - register label coefLabel=0; + label coefLabel = 0; coefLabel::nCoeffs_; coefLabel++ ) @@ -124,7 +124,7 @@ Foam::Ostream& Foam::operator<< for ( - register label coefLabel=0; + label coefLabel = 0; coefLabel::nCoeffs_; coefLabel++ ) diff --git a/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H b/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H index 6b18e8f89..416fe16dc 100644 --- a/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H +++ b/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H @@ -44,7 +44,7 @@ inline Foam::janafThermo::janafThermo Thigh_(Thigh), Tcommon_(Tcommon) { - for (register label coefLabel=0; coefLabel::janafThermo Thigh_(jt.Thigh_), Tcommon_(jt.Tcommon_) { - for (register label coefLabel = 0; coefLabel < nCoeffs_; coefLabel++) + for (label coefLabel = 0; coefLabel < nCoeffs_; coefLabel++) { highCpCoeffs_[coefLabel] = jt.highCpCoeffs_[coefLabel]; lowCpCoeffs_[coefLabel] = jt.lowCpCoeffs_[coefLabel]; @@ -209,7 +209,7 @@ inline void Foam::janafThermo::operator+= for ( - register label coefLabel=0; + label coefLabel = 0; coefLabel::nCoeffs_; coefLabel++ ) @@ -244,7 +244,7 @@ inline void Foam::janafThermo::operator-= for ( - register label coefLabel=0; + label coefLabel = 0; coefLabel::nCoeffs_; coefLabel++ ) @@ -280,7 +280,7 @@ inline Foam::janafThermo Foam::operator+ for ( - register label coefLabel=0; + label coefLabel = 0; coefLabel::nCoeffs_; coefLabel++ ) @@ -324,7 +324,7 @@ inline Foam::janafThermo Foam::operator- for ( - register label coefLabel=0; + label coefLabel = 0; coefLabel::nCoeffs_; coefLabel++ )