diff --git a/applications/solvers/finiteArea/sphereSurfactantFoam/createFaFields.H b/applications/solvers/finiteArea/sphereSurfactantFoam/createFaFields.H index 49e783e199..b26d288801 100644 --- a/applications/solvers/finiteArea/sphereSurfactantFoam/createFaFields.H +++ b/applications/solvers/finiteArea/sphereSurfactantFoam/createFaFields.H @@ -48,7 +48,7 @@ areaVectorField Us dimensioned Uinf("Uinf", dimVelocity, 1.0); -forAll (Us, faceI) +forAll(Us, faceI) { Us[faceI].x() = Uinf.value()*(0.25*(3.0 + sqr(R[faceI].x()/mag(R[faceI]))) - 1.0); diff --git a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.C b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.C index fac3a8f947..3ba6e82b72 100644 --- a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.C +++ b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/laserDTRM/laserDTRM.C @@ -720,7 +720,7 @@ void Foam::radiation::laserDTRM::calculate() { const pointField& pos = positions[proci]; const pointField& pfinal = p0[proci]; - forAll (pos, i) + forAll(pos, i) { meshTools::writeOBJ(osRef, pos[i]); vertI++; diff --git a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/massTransferModels/InterfaceCompositionModel/InterfaceCompositionModel.H b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/massTransferModels/InterfaceCompositionModel/InterfaceCompositionModel.H index 97955b8d3d..6169380399 100644 --- a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/massTransferModels/InterfaceCompositionModel/InterfaceCompositionModel.H +++ b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/massTransferModels/InterfaceCompositionModel/InterfaceCompositionModel.H @@ -172,13 +172,12 @@ public: // Instantiation for multi-component (from) to single-component (to) #define makeInterfaceDispSpecieMixtureType(Type, Thermo, Comp, Mix, Phys, OtherThermo, OtherComp, OtherMix, OtherPhys)\ \ - typedef Thermo > > \ + typedef Thermo>> \ Type##Thermo##Comp##Mix##Phys; \ \ - typedef OtherThermo > \ + typedef OtherThermo> \ Type##Other##OtherThermo##OtherComp##OtherMix##OtherPhys; \ \ - \ addInterfaceCompositionToRunTimeSelectionTable \ ( \ Type, \ @@ -190,13 +189,12 @@ public: // Instantiation for single-component (from) to multi-component (to) #define makeInterfaceContSpecieMixtureType(Type, Thermo, Comp, Mix, Phys, OtherThermo, OtherComp, OtherMix, OtherPhys)\ \ - typedef Thermo > \ + typedef Thermo> \ Type##Thermo##Comp##Mix##Phys; \ \ - typedef OtherThermo > > \ + typedef OtherThermo>> \ Type##Other##OtherThermo##OtherComp##OtherMix##OtherPhys; \ \ - \ addInterfaceCompositionToRunTimeSelectionTable \ ( \ Type, \ @@ -208,13 +206,12 @@ public: // Instantiation for single-component-single-component pairs #define makeInterfacePureType(Type, Thermo, Comp, Mix, Phys, OtherThermo, OtherComp, OtherMix, OtherPhys)\ \ - typedef Thermo > \ + typedef Thermo> \ Type##Thermo##Comp##Mix##Phys; \ \ - typedef OtherThermo > \ + typedef OtherThermo> \ Type##Other##OtherThermo##OtherComp##OtherMix##OtherPhys; \ \ - \ addInterfaceCompositionToRunTimeSelectionTable \ ( \ Type, \ @@ -226,10 +223,10 @@ public: // Instantiation for multi-component-multi-component pairs #define makeSpecieInterfaceSpecieMixtures(Type, Thermo, Comp, Mix, Phys, OtherThermo, OtherComp, OtherMix, OtherPhys)\ \ - typedef Thermo > > \ + typedef Thermo>> \ Type##Thermo##Comp##Mix##Phys; \ \ - typedef OtherThermo > > \ + typedef OtherThermo>> \ Type##Other##OtherThermo##OtherComp##OtherMix##OtherPhys; \ \ addInterfaceCompositionToRunTimeSelectionTable \ diff --git a/applications/utilities/mesh/conversion/foamMeshToFluent/fluentFvMesh.C b/applications/utilities/mesh/conversion/foamMeshToFluent/fluentFvMesh.C index c3fb4fff94..adcaa816d6 100644 --- a/applications/utilities/mesh/conversion/foamMeshToFluent/fluentFvMesh.C +++ b/applications/utilities/mesh/conversion/foamMeshToFluent/fluentFvMesh.C @@ -202,7 +202,7 @@ void Foam::fluentFvMesh::writeFluentMesh() const // Note: In Fluent, all boundary faces point inwards, which is // opposite from the OpenFOAM convention. // Turn them around on printout - forAllReverse (l, lI) + forAllReverse(l, lI) { fluentMeshFile << l[lI] + 1 << " "; } diff --git a/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposer.C b/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposer.C index 80d94f900c..d13e2455e3 100644 --- a/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposer.C +++ b/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposer.C @@ -44,7 +44,7 @@ faFieldDecomposer::patchFieldDecomposer::patchFieldDecomposer sizeBeforeMapping_(sizeBeforeMapping), directAddressing_(addressingSlice) { - forAll (directAddressing_, i) + forAll(directAddressing_, i) { // Subtract one to align addressing. // directAddressing_[i] -= addressingOffset + 1; @@ -69,7 +69,7 @@ processorAreaPatchFieldDecomposer const labelList& own = mesh.edgeOwner(); const labelList& neighb = mesh.edgeNeighbour(); - forAll (addressing_, i) + forAll(addressing_, i) { // Subtract one to align addressing. label ai = addressingSlice[i]; @@ -119,7 +119,7 @@ processorEdgePatchFieldDecomposer addressing_(addressingSlice.size()), weights_(addressingSlice.size()) { - forAll (addressing_, i) + forAll(addressing_, i) { addressing_[i].setSize(1); weights_[i].setSize(1); @@ -160,7 +160,7 @@ faFieldDecomposer::faFieldDecomposer static_cast(NULL) ) { - forAll (boundaryAddressing_, patchi) + forAll(boundaryAddressing_, patchi) { if (boundaryAddressing_[patchi] >= 0) { @@ -205,7 +205,7 @@ faFieldDecomposer::faFieldDecomposer faFieldDecomposer::~faFieldDecomposer() { - forAll (patchFieldDecomposerPtrs_, patchi) + forAll(patchFieldDecomposerPtrs_, patchi) { if (patchFieldDecomposerPtrs_[patchi]) { @@ -213,7 +213,7 @@ faFieldDecomposer::~faFieldDecomposer() } } - forAll (processorAreaPatchFieldDecomposerPtrs_, patchi) + forAll(processorAreaPatchFieldDecomposerPtrs_, patchi) { if (processorAreaPatchFieldDecomposerPtrs_[patchi]) { @@ -221,7 +221,7 @@ faFieldDecomposer::~faFieldDecomposer() } } - forAll (processorEdgePatchFieldDecomposerPtrs_, patchi) + forAll(processorEdgePatchFieldDecomposerPtrs_, patchi) { if (processorEdgePatchFieldDecomposerPtrs_[patchi]) { diff --git a/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposer.H b/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposer.H index c426be343e..b9a33275d9 100644 --- a/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposer.H +++ b/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposer.H @@ -283,7 +283,7 @@ public: //- Decompose area field template - tmp > + tmp> decomposeField ( const GeometricField& field @@ -291,7 +291,7 @@ public: //- Decompose surface field template - tmp > + tmp> decomposeField ( const GeometricField& field diff --git a/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposerDecomposeFields.C b/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposerDecomposeFields.C index 13b6f7e173..66b7f826a6 100644 --- a/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposerDecomposeFields.C +++ b/applications/utilities/parallelProcessing/decomposePar/faFieldDecomposerDecomposeFields.C @@ -37,7 +37,7 @@ namespace Foam // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template -tmp > +tmp> faFieldDecomposer::decomposeField ( const GeometricField& field @@ -47,9 +47,9 @@ faFieldDecomposer::decomposeField Field internalField(field.internalField(), faceAddressing_); // Create and map the patch field values - PtrList > patchFields(boundaryAddressing_.size()); + PtrList> patchFields(boundaryAddressing_.size()); - forAll (boundaryAddressing_, patchi) + forAll(boundaryAddressing_, patchi) { if (boundaryAddressing_[patchi] >= 0) { @@ -85,7 +85,7 @@ faFieldDecomposer::decomposeField } // Create the field for the processor - return tmp > + return tmp> ( new GeometricField ( @@ -107,7 +107,7 @@ faFieldDecomposer::decomposeField template -tmp > +tmp> faFieldDecomposer::decomposeField ( const GeometricField& field @@ -121,7 +121,7 @@ faFieldDecomposer::decomposeField procMesh_.nInternalEdges() ) ); - forAll (mapAddr, i) + forAll(mapAddr, i) { mapAddr[i] -= 1; } @@ -140,27 +140,27 @@ faFieldDecomposer::decomposeField // (i.e. using slices) Field allEdgeField(field.mesh().nEdges()); - forAll (field.internalField(), i) + forAll(field.internalField(), i) { allEdgeField[i] = field.internalField()[i]; } - forAll (field.boundaryField(), patchi) + forAll(field.boundaryField(), patchi) { const Field & p = field.boundaryField()[patchi]; const label patchStart = field.mesh().boundary()[patchi].start(); - forAll (p, i) + forAll(p, i) { allEdgeField[patchStart + i] = p[i]; } } // Create and map the patch field values - PtrList > patchFields(boundaryAddressing_.size()); + PtrList> patchFields(boundaryAddressing_.size()); - forAll (boundaryAddressing_, patchi) + forAll(boundaryAddressing_, patchi) { if (boundaryAddressing_[patchi] >= 0) { @@ -196,7 +196,7 @@ faFieldDecomposer::decomposeField } // Create the field for the processor - return tmp > + return tmp> ( new GeometricField ( @@ -223,7 +223,7 @@ void faFieldDecomposer::decomposeFields const PtrList& fields ) const { - forAll (fields, fieldI) + forAll(fields, fieldI) { decomposeField(fields[fieldI])().write(); } diff --git a/applications/utilities/parallelProcessing/decomposePar/faMeshDecomposition.C b/applications/utilities/parallelProcessing/decomposePar/faMeshDecomposition.C index e64ddc140f..752c61bf49 100644 --- a/applications/utilities/parallelProcessing/decomposePar/faMeshDecomposition.C +++ b/applications/utilities/parallelProcessing/decomposePar/faMeshDecomposition.C @@ -112,7 +112,7 @@ void Foam::faMeshDecomposition::distributeFaces() faceProcAddressingHash.insert(faceProcAddressing[i]); } - forAll (faceLabels(), faceI) + forAll(faceLabels(), faceI) { if (faceProcAddressingHash.found(faceLabels()[faceI] + 1)) { @@ -138,7 +138,7 @@ void Foam::faMeshDecomposition::distributeFaces() ) ); - forAll (faceLabels(), faceI) + forAll(faceLabels(), faceI) { if (faceProcAddressingHash.found(faceLabels()[faceI] + 1)) { @@ -217,9 +217,9 @@ void Foam::faMeshDecomposition::decomposeMesh() // Memory management { - List > procFaceList(nProcs()); + List> procFaceList(nProcs()); - forAll (faceToProc_, faceI) + forAll(faceToProc_, faceI) { if (faceToProc_[faceI] >= nProcs()) { @@ -235,7 +235,7 @@ void Foam::faMeshDecomposition::decomposeMesh() } // Convert linked lists into normal lists - forAll (procFaceList, procI) + forAll(procFaceList, procI) { procFaceAddressing_[procI] = procFaceList[procI]; } @@ -337,7 +337,7 @@ void Foam::faMeshDecomposition::decomposeMesh() edgesHash.insert(patch.edges()[curEdge], ++edgeI); } - forAll (boundary(), patchI) + forAll(boundary(), patchI) { // Include emptyFaPatch @@ -402,7 +402,7 @@ void Foam::faMeshDecomposition::decomposeMesh() // Memory management { - List > procEdgeList(nProcs()); + List> procEdgeList(nProcs()); forAll(procEdgeList, procI) { @@ -416,14 +416,14 @@ void Foam::faMeshDecomposition::decomposeMesh() // Detect inter-processor boundaries // Neighbour processor for each subdomain - List > interProcBoundaries(nProcs()); + List> interProcBoundaries(nProcs()); // Edge labels belonging to each inter-processor boundary - List > > interProcBEdges(nProcs()); + List>> interProcBEdges(nProcs()); - List > procPatchIndex(nProcs()); + List> procPatchIndex(nProcs()); - forAll (neighbour, edgeI) + forAll(neighbour, edgeI) { if (faceToProc_[owner[edgeI]] != faceToProc_[neighbour[edgeI]]) { @@ -437,7 +437,7 @@ void Foam::faMeshDecomposition::decomposeMesh() SLList