From 75cf86b769c1459e8093de07b82c9970603cfb7f Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Sat, 9 Jan 2016 23:10:16 +0000 Subject: [PATCH] Correct formatting: "forAll (" -> "forAll(" Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1967 --- .../fluid/compressibleMultiRegionCourantNo.H | 2 +- .../mesh/manipulation/checkMesh/checkTopology.C | 4 ++-- .../preProcessing/viewFactorsGen/viewFactorsGen.C | 14 +++++++------- .../surfaceSplitByTopology.C | 4 ++-- .../LduMatrix/LduMatrixUpdateMatrixInterfaces.C | 8 ++++---- .../polyMesh/polyBoundaryMesh/polyBoundaryMesh.C | 4 ++-- .../meshes/polyMesh/polyMeshCheck/polyMeshCheck.C | 8 ++++---- .../meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C | 4 ++-- .../primitiveMeshCheck/primitiveMeshTools.C | 4 ++-- ...rnalWallHeatFluxTemperatureFvPatchScalarField.C | 4 ++-- ...mperatureCoupledBaffleMixedFvPatchScalarField.C | 4 ++-- ...tTemperatureRadCoupledMixedFvPatchScalarField.C | 4 ++-- .../extrudePatchMesh/extrudePatchMesh.C | 14 +++++++------- .../DarcyForchheimer/DarcyForchheimer.C | 4 ++-- .../general/porosityModel/fixedCoeff/fixedCoeff.C | 4 ++-- ...PressureForceBaffleVelocityFvPatchVectorField.C | 4 ++-- .../LeastSquaresGrad/LeastSquaresVectors.C | 4 ++-- .../pairPatchAgglomeration.C | 4 ++-- .../writeRegisteredObject/writeRegisteredObject.H | 4 +--- .../regionModel/regionModel1D/regionModel1D.C | 4 ++-- .../thermalBaffleFvPatchScalarField.C | 4 ++-- .../thermalBaffleModel/thermalBaffleModel.C | 6 +++--- src/sampling/probes/probes.C | 4 ++-- .../greyMeanAbsorptionEmission.C | 4 ++-- .../greyMeanSolidAbsorptionEmission.C | 4 ++-- 25 files changed, 63 insertions(+), 65 deletions(-) diff --git a/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/compressibleMultiRegionCourantNo.H b/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/compressibleMultiRegionCourantNo.H index fa5feefbb4b..82dc8758475 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/compressibleMultiRegionCourantNo.H +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/compressibleMultiRegionCourantNo.H @@ -15,7 +15,7 @@ ); } /* - forAll (porousFluidRegions, porousI) + forAll(porousFluidRegions, porousI) { CoNum = max ( diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C index b0c4d37c037..e093787090c 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -446,7 +446,7 @@ Foam::label Foam::checkTopology if (returnReduce(mp.size(), sumOp<label>()) > 0) { boundBox bb(point::max, point::min); - forAll (mp, i) + forAll(mp, i) { bb.min() = min(bb.min(), pts[mp[i]]); bb.max() = max(bb.max(), pts[mp[i]]); diff --git a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C index bccf381ba15..e01be739e1c 100644 --- a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C +++ b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -381,7 +381,7 @@ int main(int argc, char *argv[]) DynamicList<label> localAgg(nCoarseFaces); - forAll (viewFactorsPatches, i) + forAll(viewFactorsPatches, i) { const label patchID = viewFactorsPatches[i]; @@ -689,7 +689,7 @@ int main(int argc, char *argv[]) if (mesh.nSolutionD() == 3) { - forAll (localCoarseSf, coarseFaceI) + forAll(localCoarseSf, coarseFaceI) { const List<point>& localFineSf = compactFineSf[coarseFaceI]; const vector Ai = sum(localFineSf); @@ -709,12 +709,12 @@ int main(int argc, char *argv[]) const label toPatchId = compactPatchId[compactJ]; scalar Fij = 0; - forAll (localFineSf, i) + forAll(localFineSf, i) { const vector& dAi = localFineSf[i]; const vector& dCi = localFineCf[i]; - forAll (remoteFineSj, j) + forAll(remoteFineSj, j) { const vector& dAj = remoteFineSj[j]; const vector& dCj = remoteFineCj[j]; @@ -762,7 +762,7 @@ int main(int argc, char *argv[]) patchArea[fromPatchId] += mag(Ai); const labelList& visCoarseFaces = visibleFaceFaces[coarseFaceI]; - forAll (visCoarseFaces, visCoarseFaceI) + forAll(visCoarseFaces, visCoarseFaceI) { F[coarseFaceI].setSize(visCoarseFaces.size()); label compactJ = visCoarseFaces[visCoarseFaceI]; @@ -847,7 +847,7 @@ int main(int argc, char *argv[]) const scalar Fij = sum(F[compactI]); const label coarseFaceID = coarsePatchFace[coarseI]; const labelList& fineFaces = coarseToFine[coarseFaceID]; - forAll (fineFaces, fineId) + forAll(fineFaces, fineId) { const label faceID = fineFaces[fineId]; viewFactorField.boundaryField()[patchID][faceID] = Fij; diff --git a/applications/utilities/surface/surfaceSplitByTopology/surfaceSplitByTopology.C b/applications/utilities/surface/surfaceSplitByTopology/surfaceSplitByTopology.C index 3e924513692..9ab191ae212 100644 --- a/applications/utilities/surface/surfaceSplitByTopology/surfaceSplitByTopology.C +++ b/applications/utilities/surface/surfaceSplitByTopology/surfaceSplitByTopology.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -101,7 +101,7 @@ int main(int argc, char *argv[]) { if (faceZone[f] == z) { - forAll (faceEds[f], fe) + forAll(faceEds[f], fe) { if (edFaces[faceEds[f][fe]].size() < 2) { diff --git a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixUpdateMatrixInterfaces.C b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixUpdateMatrixInterfaces.C index b068e474815..89c3f797eed 100644 --- a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixUpdateMatrixInterfaces.C +++ b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixUpdateMatrixInterfaces.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -42,7 +42,7 @@ void Foam::LduMatrix<Type, DType, LUType>::initMatrixInterfaces || Pstream::defaultCommsType == Pstream::nonBlocking ) { - forAll (interfaces_, interfaceI) + forAll(interfaces_, interfaceI) { if (interfaces_.set(interfaceI)) { @@ -114,7 +114,7 @@ void Foam::LduMatrix<Type, DType, LUType>::updateMatrixInterfaces OPstream::waitRequests(); } - forAll (interfaces_, interfaceI) + forAll(interfaces_, interfaceI) { if (interfaces_.set(interfaceI)) { @@ -134,7 +134,7 @@ void Foam::LduMatrix<Type, DType, LUType>::updateMatrixInterfaces const lduSchedule& patchSchedule = this->patchSchedule(); // Loop over all the "normal" interfaces relating to standard patches - forAll (patchSchedule, i) + forAll(patchSchedule, i) { label interfaceI = patchSchedule[i].patch; diff --git a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C index f3311f26e4b..a795557339a 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -179,7 +179,7 @@ Foam::polyBoundaryMesh::polyBoundaryMesh { polyPatchList& patches = *this; patches.setSize(ppl.size()); - forAll (patches, patchI) + forAll(patches, patchI) { patches.set(patchI, ppl[patchI].clone(*this).ptr()); } diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshCheck.C b/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshCheck.C index 14835981ab8..f4716969867 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshCheck.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshCheck.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -441,7 +441,7 @@ bool Foam::polyMesh::checkCellDeterminant scalar minDet = min(cellDeterminant); scalar sumDet = sum(cellDeterminant); - forAll (cellDeterminant, cellI) + forAll(cellDeterminant, cellI) { if (cellDeterminant[cellI] < warnDet) { @@ -529,7 +529,7 @@ bool Foam::polyMesh::checkFaceWeight // Statistics only for internal and masters of coupled faces PackedBoolList isMasterFace(syncTools::getInternalOrMasterFaces(*this)); - forAll (faceWght, faceI) + forAll(faceWght, faceI) { if (faceWght[faceI] < minWeight) { @@ -618,7 +618,7 @@ bool Foam::polyMesh::checkVolRatio // Statistics only for internal and masters of coupled faces PackedBoolList isMasterFace(syncTools::getInternalOrMasterFaces(*this)); - forAll (volRatio, faceI) + forAll(volRatio, faceI) { if (volRatio[faceI] < minRatio) { diff --git a/src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C b/src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C index 5e44455f0c2..f453dee2a0c 100644 --- a/src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -186,7 +186,7 @@ Foam::ZoneMesh<ZoneType, MeshType>::ZoneMesh // Nothing read. Use supplied zones PtrList<ZoneType>& zones = *this; zones.setSize(pzm.size()); - forAll (zones, zoneI) + forAll(zones, zoneI) { zones.set(zoneI, pzm[zoneI].clone(*this).ptr()); } diff --git a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C index c833f5ca91a..2845ca262bd 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C +++ b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -484,7 +484,7 @@ Foam::tmp<Foam::scalarField> Foam::primitiveMeshTools::cellDeterminant } else { - forAll (c, cellI) + forAll(c, cellI) { const labelList& curFaces = c[cellI]; diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C index 2a02d01cac2..9a23256da06 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -282,7 +282,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs() scalar totalSolidRes = 0.0; if (thicknessLayers_.size() > 0) { - forAll (thicknessLayers_, iLayer) + forAll(thicknessLayers_, iLayer) { const scalar l = thicknessLayers_[iLayer]; if (kappaLayers_[iLayer] > 0.0) diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C index 903c50b164e..ad37059180e 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -109,7 +109,7 @@ turbulentTemperatureCoupledBaffleMixedFvPatchScalarField if (thicknessLayers_.size() > 0) { // Calculate effective thermal resistance by harmonic averaging - forAll (thicknessLayers_, iLayer) + forAll(thicknessLayers_, iLayer) { contactRes_ += thicknessLayers_[iLayer]/kappaLayers_[iLayer]; } diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C index 8d563bac65c..4fa51bc054d 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -115,7 +115,7 @@ turbulentTemperatureRadCoupledMixedFvPatchScalarField if (thicknessLayers_.size() > 0) { // Calculate effective thermal resistance by harmonic averaging - forAll (thicknessLayers_, iLayer) + forAll(thicknessLayers_, iLayer) { contactRes_ += thicknessLayers_[iLayer]/kappaLayers_[iLayer]; } diff --git a/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.C b/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.C index ca875556278..d2e00ec96fb 100644 --- a/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.C +++ b/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -110,7 +110,7 @@ extrudePatchMesh::extrudePatchMesh List<word> patchTypes(regionPatches.size()); PtrList<dictionary> dicts(regionPatches.size()); - forAll (dicts, patchI) + forAll(dicts, patchI) { if (!dicts.set(patchI)) { @@ -122,13 +122,13 @@ extrudePatchMesh::extrudePatchMesh dicts[sidePatchID] = dict_.subDict("sideCoeffs"); dicts[topPatchID] = dict_.subDict("topCoeffs"); - forAll (dicts, patchI) + forAll(dicts, patchI) { dicts[patchI].lookup("name") >> patchNames[patchI]; dicts[patchI].lookup("type") >> patchTypes[patchI]; } - forAll (regionPatches, patchI) + forAll(regionPatches, patchI) { dictionary& patchDict = dicts[patchI]; patchDict.set("nFaces", 0); @@ -267,7 +267,7 @@ void extrudePatchMesh::extrudeMesh(const List<polyPatch*>& regionPatches) List<word> patchTypes(regionPatches.size()); PtrList<dictionary> dicts(regionPatches.size()); - forAll (dicts, patchI) + forAll(dicts, patchI) { if (!dicts.set(patchI)) { @@ -279,13 +279,13 @@ void extrudePatchMesh::extrudeMesh(const List<polyPatch*>& regionPatches) dicts[sidePatchID] = dict_.subDict("sideCoeffs"); dicts[topPatchID] = dict_.subDict("topCoeffs"); - forAll (dicts, patchI) + forAll(dicts, patchI) { dicts[patchI].lookup("name") >> patchNames[patchI]; dicts[patchI].lookup("type") >> patchTypes[patchI]; } - forAll (regionPatches, patchI) + forAll(regionPatches, patchI) { dictionary& patchDict = dicts[patchI]; patchDict.set("nFaces", 0); diff --git a/src/finiteVolume/cfdTools/general/porosityModel/DarcyForchheimer/DarcyForchheimer.C b/src/finiteVolume/cfdTools/general/porosityModel/DarcyForchheimer/DarcyForchheimer.C index 20ac7a29b1f..411b8dfc6bc 100644 --- a/src/finiteVolume/cfdTools/general/porosityModel/DarcyForchheimer/DarcyForchheimer.C +++ b/src/finiteVolume/cfdTools/general/porosityModel/DarcyForchheimer/DarcyForchheimer.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -79,7 +79,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData() { if (coordSys_.R().uniform()) { - forAll (cellZoneIDs_, zoneI) + forAll(cellZoneIDs_, zoneI) { D_[zoneI].setSize(1); F_[zoneI].setSize(1); diff --git a/src/finiteVolume/cfdTools/general/porosityModel/fixedCoeff/fixedCoeff.C b/src/finiteVolume/cfdTools/general/porosityModel/fixedCoeff/fixedCoeff.C index eeb4bb3e9c2..6525c6c2c3b 100644 --- a/src/finiteVolume/cfdTools/general/porosityModel/fixedCoeff/fixedCoeff.C +++ b/src/finiteVolume/cfdTools/general/porosityModel/fixedCoeff/fixedCoeff.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -135,7 +135,7 @@ void Foam::porosityModels::fixedCoeff::calcTransformModelData() { if (coordSys_.R().uniform()) { - forAll (cellZoneIDs_, zoneI) + forAll(cellZoneIDs_, zoneI) { alpha_[zoneI].setSize(1); beta_[zoneI].setSize(1); diff --git a/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C index 02a63dd00d3..cef5a6e58f5 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -190,7 +190,7 @@ void Foam::activePressureForceBaffleVelocityFvPatchVectorField::autoMap //- Note: we don't want to use Sf here since triggers rebuilding of // fvMesh::S() which will give problems when mapped (since already // on new mesh) - forAll (patch().boundaryMesh().mesh().faceAreas(), i) + forAll(patch().boundaryMesh().mesh().faceAreas(), i) { if (mag(patch().boundaryMesh().mesh().faceAreas()[i]) == 0) { diff --git a/src/finiteVolume/finiteVolume/gradSchemes/LeastSquaresGrad/LeastSquaresVectors.C b/src/finiteVolume/finiteVolume/gradSchemes/LeastSquaresGrad/LeastSquaresVectors.C index ea30ffa3dbf..536208067a8 100644 --- a/src/finiteVolume/finiteVolume/gradSchemes/LeastSquaresGrad/LeastSquaresVectors.C +++ b/src/finiteVolume/finiteVolume/gradSchemes/LeastSquaresGrad/LeastSquaresVectors.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -68,7 +68,7 @@ void Foam::fv::LeastSquaresVectors<Stencil>::calcLeastSquaresVectors() // including components for the "empty" directions symmTensor dd0(sqr((Vector<label>::one - mesh.geometricD())/2)); - forAll (vectors_, i) + forAll(vectors_, i) { List<vector>& lsvi = vectors_[i]; symmTensor dd(dd0); diff --git a/src/fvAgglomerationMethods/pairPatchAgglomeration/pairPatchAgglomeration.C b/src/fvAgglomerationMethods/pairPatchAgglomeration/pairPatchAgglomeration.C index 33c19f801ae..ecceef966aa 100644 --- a/src/fvAgglomerationMethods/pairPatchAgglomeration/pairPatchAgglomeration.C +++ b/src/fvAgglomerationMethods/pairPatchAgglomeration/pairPatchAgglomeration.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -254,7 +254,7 @@ void Foam::pairPatchAgglomeration::mapBaseToTopAgglom ) { const labelList& fineToCoarse = restrictAddressing_[fineLevelIndex]; - forAll (restrictTopBottomAddressing_, i) + forAll(restrictTopBottomAddressing_, i) { restrictTopBottomAddressing_[i] = fineToCoarse[restrictTopBottomAddressing_[i]]; diff --git a/src/postProcessing/functionObjects/IO/writeRegisteredObject/writeRegisteredObject.H b/src/postProcessing/functionObjects/IO/writeRegisteredObject/writeRegisteredObject.H index d08dc7c914c..8785424569a 100644 --- a/src/postProcessing/functionObjects/IO/writeRegisteredObject/writeRegisteredObject.H +++ b/src/postProcessing/functionObjects/IO/writeRegisteredObject/writeRegisteredObject.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -94,8 +94,6 @@ class mapPolyMesh; class writeRegisteredObject { -protected: - // Private data //- Name of this set of writeRegisteredObject diff --git a/src/regionModels/regionModel/regionModel1D/regionModel1D.C b/src/regionModels/regionModel/regionModel1D/regionModel1D.C index d5e80beec8a..63e8145c5f6 100644 --- a/src/regionModels/regionModel/regionModel1D/regionModel1D.C +++ b/src/regionModels/regionModel/regionModel1D/regionModel1D.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -134,7 +134,7 @@ void Foam::regionModels::regionModel1D::initialise() { const vector& n = pNormals[localFaceI]; const labelList& faces = boundaryFaceFaces_[localPyrolysisFaceI++]; - forAll (faces, faceI) + forAll(faces, faceI) { const label faceID = faces[faceI]; nMagSf[faceID] = regionMesh().Sf()[faceID] & n; diff --git a/src/regionModels/thermalBaffleModels/derivedFvPatchFields/thermalBaffle/thermalBaffleFvPatchScalarField.C b/src/regionModels/thermalBaffleModels/derivedFvPatchFields/thermalBaffle/thermalBaffleFvPatchScalarField.C index 2231b42999f..e575a1c480e 100644 --- a/src/regionModels/thermalBaffleModels/derivedFvPatchFields/thermalBaffle/thermalBaffleFvPatchScalarField.C +++ b/src/regionModels/thermalBaffleModels/derivedFvPatchFields/thermalBaffle/thermalBaffleFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -208,7 +208,7 @@ void thermalBaffleFvPatchScalarField::createPatchMesh() dicts[topPatchID].add("sampleMode", mpp.sampleModeNames_[mpp.mode()]); - forAll (regionPatches, patchI) + forAll(regionPatches, patchI) { dictionary& patchDict = dicts[patchI]; patchDict.set("nFaces", 0); diff --git a/src/regionModels/thermalBaffleModels/thermalBaffleModel/thermalBaffleModel.C b/src/regionModels/thermalBaffleModels/thermalBaffleModel/thermalBaffleModel.C index c432d922a83..f56ef9193e5 100644 --- a/src/regionModels/thermalBaffleModels/thermalBaffleModel/thermalBaffleModel.C +++ b/src/regionModels/thermalBaffleModels/thermalBaffleModel/thermalBaffleModel.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -76,7 +76,7 @@ void thermalBaffleModel::init() reduce(nTotalEdges, sumOp<label>()); label nFaces = 0; - forAll (rbm, patchi) + forAll(rbm, patchi) { if ( rbm[patchi].size() @@ -157,7 +157,7 @@ void thermalBaffleModel::init() // Calculate thickness of the baffle on the first face only. if (delta_.value() == 0.0) { - forAll (ppCoupled, localFaceI) + forAll(ppCoupled, localFaceI) { label faceI = ppCoupled.start() + localFaceI; diff --git a/src/sampling/probes/probes.C b/src/sampling/probes/probes.C index 2ea3a4f4300..9a103e1367c 100644 --- a/src/sampling/probes/probes.C +++ b/src/sampling/probes/probes.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,7 +67,7 @@ void Foam::probes::findElements(const fvMesh& mesh) const vector& cellCentre = mesh.cellCentres()[cellI]; scalar minDistance = GREAT; label minFaceID = -1; - forAll (cellFaces, i) + forAll(cellFaces, i) { label faceI = cellFaces[i]; vector dist = mesh.faceCentres()[faceI] - cellCentre; diff --git a/src/thermophysicalModels/radiation/submodels/absorptionEmissionModel/greyMeanAbsorptionEmission/greyMeanAbsorptionEmission.C b/src/thermophysicalModels/radiation/submodels/absorptionEmissionModel/greyMeanAbsorptionEmission/greyMeanAbsorptionEmission.C index 985935df96f..ef0ab320125 100644 --- a/src/thermophysicalModels/radiation/submodels/absorptionEmissionModel/greyMeanAbsorptionEmission/greyMeanAbsorptionEmission.C +++ b/src/thermophysicalModels/radiation/submodels/absorptionEmissionModel/greyMeanAbsorptionEmission/greyMeanAbsorptionEmission.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -234,7 +234,7 @@ Foam::radiation::greyMeanAbsorptionEmission::aCont(const label bandI) const else { scalar invWt = 0.0; - forAll (mixture.Y(), s) + forAll(mixture.Y(), s) { invWt += mixture.Y(s)[cellI]/mixture.W(s); } diff --git a/src/thermophysicalModels/radiation/submodels/absorptionEmissionModel/greyMeanSolidAbsorptionEmission/greyMeanSolidAbsorptionEmission.C b/src/thermophysicalModels/radiation/submodels/absorptionEmissionModel/greyMeanSolidAbsorptionEmission/greyMeanSolidAbsorptionEmission.C index 14497374c0a..2ab19310291 100644 --- a/src/thermophysicalModels/radiation/submodels/absorptionEmissionModel/greyMeanSolidAbsorptionEmission/greyMeanSolidAbsorptionEmission.C +++ b/src/thermophysicalModels/radiation/submodels/absorptionEmissionModel/greyMeanSolidAbsorptionEmission/greyMeanSolidAbsorptionEmission.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -64,7 +64,7 @@ greyMeanSolidAbsorptionEmission::X(const word specie) const { const scalarField& Yi = mixture_.Y()[specieI]; - forAll (rhoInv, iCell) + forAll(rhoInv, iCell) { rhoInv[iCell] += Yi[iCell]/mixture_.rho(specieI, p[iCell], T[iCell]); -- GitLab