From 6a27f7af46cc74539c92ea68016b8e2a80a7ab35 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sun, 24 Apr 2016 22:07:37 +0100 Subject: [PATCH] boundaryField() -> boundaryFieldRef() --- .../BlendedInterfacialModel.C | 7 +- .../BlendedInterfacialModel.C | 7 +- .../test/PatchTools/Test-PatchTools.C | 4 +- .../extendedStencil/Test-ExtendedStencil2.C | 4 +- .../test/mappedPatch/Test-MappedPatch.C | 16 +- applications/test/mesh/Test-mesh.C | 12 +- .../test/patchRegion/Test-patchRegion.C | 6 +- .../test/router/Test-processorRouter.C | 12 +- .../Test-volPointInterpolation.C | 16 +- .../utilities/mesh/advanced/PDRMesh/PDRMesh.C | 51 +++--- .../autoRefineMesh/snappyRefineMesh.C | 20 +-- .../refinementLevel/refinementLevel.C | 12 +- .../Optional/ccm26ToFoam/ccm26ToFoam.C | 36 ++--- .../mesh/conversion/ansysToFoam/ansysToFoam.L | 56 +++---- .../mesh/conversion/cfx4ToFoam/cfx4ToFoam.C | 82 +++++----- .../fluentMeshToFoam/fluentMeshToFoam.L | 28 ++-- .../foamMeshToFluent/fluentFvMesh.C | 28 ++-- .../conversion/gambitToFoam/gambitToFoam.L | 16 +- .../mesh/conversion/gmshToFoam/gmshToFoam.C | 68 ++++---- .../ideasUnvToFoam/ideasUnvToFoam.C | 60 +++---- .../mesh/conversion/kivaToFoam/readKivaGrid.H | 8 +- .../netgenNeutralToFoam/netgenNeutralToFoam.C | 28 ++-- .../sammToFoam/createBoundaryFaces.C | 6 +- .../sammToFoam/createPolyBoundary.C | 24 +-- .../mesh/conversion/sammToFoam/readBoundary.C | 12 +- .../star3ToFoam/createBoundaryFaces.C | 18 +-- .../star3ToFoam/createPolyBoundary.C | 20 +-- .../conversion/star3ToFoam/readBoundary.C | 12 +- .../conversion/tetgenToFoam/tetgenToFoam.C | 26 ++-- .../conversion/writeMeshObj/writeMeshObj.C | 14 +- .../mesh/generation/blockMesh/blockMeshApp.C | 6 +- .../extrude/extrudeMesh/extrudeMesh.C | 28 ++-- .../extrudeToRegionMesh/extrudeToRegionMesh.C | 146 +++++++++--------- .../extrude2DMesh/extrude2DMesh.C | 16 +- .../patchToPoly2DMesh/patchToPoly2DMesh.C | 12 +- .../extrude2DMesh/extrude2DMeshApp.C | 12 +- .../conformalVoronoiMeshCalcDualMesh.C | 46 +++--- .../conformalVoronoiMeshIO.C | 80 +++++----- .../conformalVoronoiMeshZones.C | 24 +-- .../foamyHexMeshBackgroundMesh.C | 6 +- .../foamyMesh/foamyQuadMesh/CV2DIO.C | 8 +- .../foamyMesh/foamyQuadMesh/foamyQuadMesh.C | 12 +- .../foamyQuadMesh/shortEdgeFilter2D.C | 6 +- .../generation/snappyHexMesh/snappyHexMesh.C | 50 +++--- .../mesh/manipulation/autoPatch/autoPatch.C | 10 +- .../manipulation/checkMesh/checkGeometry.C | 30 ++-- .../manipulation/checkMesh/checkTopology.C | 16 +- .../createBaffles/createBaffles.C | 32 ++-- .../searchableSurfaceSelection.C | 10 +- .../manipulation/createPatch/createPatch.C | 50 +++--- .../manipulation/mergeMeshes/mergePolyMesh.C | 38 ++--- .../mergeOrSplitBaffles/mergeOrSplitBaffles.C | 8 +- .../manipulation/mirrorMesh/mirrorFvMesh.C | 28 ++-- .../moveDynamicMesh/moveDynamicMesh.C | 8 +- .../orientFaceZone/orientFaceZone.C | 12 +- .../manipulation/polyDualMesh/meshDualiser.C | 24 +-- .../polyDualMesh/polyDualMeshApp.C | 6 +- .../manipulation/renumberMesh/renumberMesh.C | 22 +-- .../mesh/manipulation/splitMesh/splitMesh.C | 6 +- .../splitMeshRegions/splitMeshRegions.C | 36 ++--- .../mesh/manipulation/stitchMesh/stitchMesh.C | 6 +- .../miscellaneous/patchSummary/patchSummary.C | 76 ++++----- .../patchSummary/patchSummaryTemplates.C | 10 +- .../decomposePar/domainDecompositionMesh.C | 14 +- .../reconstructParMesh/reconstructParMesh.C | 8 +- .../redistributePar/loadOrCreateMesh.C | 28 ++-- .../redistributePar/redistributePar.C | 12 +- .../foamDataToFluent/foamDataToFluent.C | 6 +- .../foamDataToFluent/writeFluentScalarField.C | 16 +- .../foamDataToFluent/writeFluentVectorField.C | 10 +- .../foamToEnsight/ensightField.C | 6 +- .../foamToEnsight/ensightMesh.C | 6 +- .../foamToTecplot360/foamToTecplot360.C | 14 +- .../foamToTecplot360/tecplotWriterTemplates.C | 14 +- .../foamToTetDualMesh/foamToTetDualMesh.C | 6 +- .../dataConversion/foamToVTK/foamToVTK.C | 18 +-- .../dataConversion/foamToVTK/patchWriter.C | 8 +- .../foamToVTK/patchWriterTemplates.C | 12 +- .../foamToVTK/surfaceMeshWriterTemplates.C | 8 +- .../foamToVTK/writeSurfFields.C | 8 +- .../PV3FoamReader/vtkPV3Foam/vtkPV3Foam.C | 42 ++--- .../vtkPV3Foam/vtkPV3FoamUpdateInfo.C | 26 ++-- .../PVFoamReader/vtkPVFoam/vtkPVFoam.C | 42 ++--- .../vtkPVFoam/vtkPVFoamUpdateInfo.C | 26 ++-- .../miscellaneous/postChannel/channelIndex.C | 8 +- .../writeCellCentres/writeCellCentres.C | 13 +- .../patch/patchAverage/patchAverage.C | 26 ++-- .../patch/patchIntegrate/patchIntegrate.C | 54 +++---- .../stressComponents/stressComponents.C | 13 +- .../streamFunction/streamFunction.C | 14 +- .../postProcessing/wall/wallGradU/wallGradU.C | 8 +- .../wall/wallHeatFlux/wallHeatFlux.C | 16 +- .../wall/wallShearStress/wallShearStress.C | 26 ++-- .../postProcessing/wall/yPlus/yPlus.C | 9 +- ...ateExternalCoupledPatchGeometryTemplates.C | 6 +- .../faceAgglomerate/faceAgglomerate.C | 49 +++--- .../foamUpgradeCyclics/foamUpgradeCyclics.C | 34 ++-- .../preProcessing/mapFieldsPar/mapFieldsPar.C | 8 +- .../preProcessing/setFields/setFields.C | 15 +- .../viewFactorsGen/searchingEngine.H | 6 +- .../viewFactorsGen/viewFactorsGen.C | 35 +++-- .../utilities/surface/surfaceAdd/surfaceAdd.C | 22 +-- .../surfaceAutoPatch/surfaceAutoPatch.C | 8 +- .../surface/surfaceCheck/surfaceCheck.C | 8 +- .../surfaceMeshTriangulate.C | 14 +- .../surfaceSplitByPatch/surfaceSplitByPatch.C | 10 +- .../surface/surfaceToPatch/surfaceToPatch.C | 36 ++--- .../RAS/LamBremhorstKE/LamBremhorstKE.C | 4 +- .../RAS/LienCubicKE/LienCubicKE.C | 4 +- .../RAS/LienLeschziner/LienLeschziner.C | 4 +- .../RAS/ShihQuadraticKE/ShihQuadraticKE.C | 4 +- .../RAS/kkLOmega/kkLOmega.C | 8 +- .../RAS/mixtureKEpsilon/mixtureKEpsilon.C | 10 +- .../LESdeltas/vanDriestDelta/vanDriestDelta.C | 6 +- .../SpalartAllmarasDDES/SpalartAllmarasDDES.C | 2 +- .../SpalartAllmarasDES/SpalartAllmarasDES.C | 2 +- .../turbulenceModels/RAS/LRR/LRR.C | 4 +- .../RAS/LaunderSharmaKE/LaunderSharmaKE.C | 2 +- .../RAS/RNGkEpsilon/RNGkEpsilon.C | 4 +- .../turbulenceModels/RAS/SSG/SSG.C | 4 +- .../RAS/SpalartAllmaras/SpalartAllmaras.C | 2 +- .../turbulenceModels/RAS/kEpsilon/kEpsilon.C | 4 +- .../turbulenceModels/RAS/kOmega/kOmega.C | 4 +- .../RAS/kOmegaSST/kOmegaSST.C | 4 +- .../RAS/realizableKE/realizableKE.C | 4 +- .../turbulenceModels/RAS/v2f/v2f.C | 4 +- .../ReynoldsStress/ReynoldsStress.C | 4 +- .../singleCellFvMeshInterpolate.C | 2 +- .../meshWave/wallDistData/wallDistData.C | 24 +-- .../clouds/Templates/DSMCCloud/DSMCCloudI.H | 16 +- .../fvFieldDecomposerDecomposeFields.C | 4 +- .../kinematicSingleLayer.C | 40 +++-- .../kinematicSingleLayerTemplates.C | 17 +- .../thermoSingleLayer/thermoSingleLayer.C | 37 +++-- src/sampling/meshToMesh/meshToMeshTemplates.C | 71 +++++---- .../meshToMesh0/meshToMesh0Templates.C | 28 ++-- .../distanceSurface/distanceSurface.C | 11 +- .../isoSurface/isoSurfaceTemplates.C | 45 +++--- .../sampledCuttingPlane/sampledCuttingPlane.C | 23 +-- .../basic/heThermo/heThermo.C | 69 +++++---- .../basic/psiThermo/hePsiThermo.C | 36 +++-- .../basic/rhoThermo/heRhoThermo.C | 41 +++-- .../laminarFlameSpeed/Gulders/Gulders.C | 16 +- .../laminarFlameSpeed/GuldersEGR/GuldersEGR.C | 16 +- ...iffusiveRadiationMixedFvPatchScalarField.C | 8 +- ...iffusiveRadiationMixedFvPatchScalarField.C | 8 +- .../radiation/radiationModels/P1/P1.C | 4 +- .../radiationModels/fvDOM/fvDOM/fvDOM.C | 6 +- .../radiativeIntensityRay.C | 2 +- .../radiationModels/viewFactor/viewFactor.C | 11 +- .../psiuReactionThermo/heheuPsiThermo.C | 90 +++++++---- .../psiuReactionThermo/psiuReactionThermo.C | 4 +- .../solidThermo/solidThermo/heSolidThermo.C | 36 +++-- .../interfaceProperties/interfaceProperties.C | 6 +- .../interfaceProperties/interfaceProperties.H | 4 +- 155 files changed, 1650 insertions(+), 1466 deletions(-) diff --git a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C index abff13475e..f216859b08 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C +++ b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C @@ -36,18 +36,17 @@ void Foam::BlendedInterfacialModel::correctFixedFluxBCs GeometricField& field ) const { - forAll(phase1_.phi()().boundaryField(), patchI) + forAll(phase1_.phi()().boundaryField(), patchi) { if ( isA ( - phase1_.phi()().boundaryField()[patchI] + phase1_.phi()().boundaryField()[patchi] ) ) { - field.boundaryField()[patchI] - = Zero; + field.boundaryField()[patchi] = Zero; } } } diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C index 0d78e02ac8..ecf674e6e0 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.C @@ -36,18 +36,17 @@ void Foam::BlendedInterfacialModel::correctFixedFluxBCs GeometricField& field ) const { - forAll(pair_.phase1().phi().boundaryField(), patchI) + forAll(pair_.phase1().phi().boundaryField(), patchi) { if ( isA ( - pair_.phase1().phi().boundaryField()[patchI] + pair_.phase1().phi().boundaryField()[patchi] ) ) { - field.boundaryField()[patchI] - = Zero; + field.boundaryField()[patchi] = Zero; } } } diff --git a/applications/test/PatchTools/Test-PatchTools.C b/applications/test/PatchTools/Test-PatchTools.C index 094ea00f10..ec193ec3f5 100644 --- a/applications/test/PatchTools/Test-PatchTools.C +++ b/applications/test/PatchTools/Test-PatchTools.C @@ -208,8 +208,8 @@ int main(int argc, char *argv[]) #include "createMesh.H" const word patchName = args[1]; - label patchI = mesh.boundaryMesh().findPatchID(patchName); - const polyPatch& pp = mesh.boundaryMesh()[patchI]; + label patchi = mesh.boundaryMesh().findPatchID(patchName); + const polyPatch& pp = mesh.boundaryMesh()[patchi]; const indirectPrimitivePatch& cpp = mesh.globalData().coupledPatch(); diff --git a/applications/test/extendedStencil/Test-ExtendedStencil2.C b/applications/test/extendedStencil/Test-ExtendedStencil2.C index 03d5283233..b1928bc6d2 100644 --- a/applications/test/extendedStencil/Test-ExtendedStencil2.C +++ b/applications/test/extendedStencil/Test-ExtendedStencil2.C @@ -156,9 +156,9 @@ int main(int argc, char *argv[]) } // Insert my boundary values label nCompact = fld.size(); - forAll(fld.boundaryField(), patchI) + forAll(fld.boundaryField(), patchi) { - const fvPatchField& pfld = fld.boundaryField()[patchI]; + const fvPatchField& pfld = fld.boundaryField()[patchi]; forAll(pfld, i) { diff --git a/applications/test/mappedPatch/Test-MappedPatch.C b/applications/test/mappedPatch/Test-MappedPatch.C index ba3e06c8a5..603c5e2062 100644 --- a/applications/test/mappedPatch/Test-MappedPatch.C +++ b/applications/test/mappedPatch/Test-MappedPatch.C @@ -60,11 +60,11 @@ int main(int argc, char *argv[]) calculatedFvPatchVectorField::typeName ); - forAll(mesh.boundaryMesh(), patchI) + forAll(mesh.boundaryMesh(), patchi) { - if (isA(mesh.boundaryMesh()[patchI])) + if (isA(mesh.boundaryMesh()[patchi])) { - patchFieldTypes[patchI] = + patchFieldTypes[patchi] = mappedFixedValueFvPatchVectorField::typeName; } } @@ -89,23 +89,23 @@ int main(int argc, char *argv[]) cc.internalField() = mesh.C().internalField(); cc.boundaryFieldRef().updateCoeffs(); - forAll(cc.boundaryField(), patchI) + forAll(cc.boundaryField(), patchi) { if ( isA ( - cc.boundaryField()[patchI] + cc.boundaryField()[patchi] ) ) { - Pout<< "Detected a mapped patch:" << patchI << endl; + Pout<< "Detected a mapped patch:" << patchi << endl; - OFstream str(mesh.boundaryMesh()[patchI].name() + ".obj"); + OFstream str(mesh.boundaryMesh()[patchi].name() + ".obj"); Pout<< "Writing mapped values to " << str.name() << endl; label vertI = 0; - const fvPatchVectorField& fvp = cc.boundaryField()[patchI]; + const fvPatchVectorField& fvp = cc.boundaryField()[patchi]; forAll(fvp, i) { diff --git a/applications/test/mesh/Test-mesh.C b/applications/test/mesh/Test-mesh.C index d9c6dd431b..d7d5895089 100644 --- a/applications/test/mesh/Test-mesh.C +++ b/applications/test/mesh/Test-mesh.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 @@ -66,18 +66,18 @@ int main(int argc, char *argv[]) const polyBoundaryMesh& pbm = mesh.boundaryMesh(); faceListList boundaryFaces(pbm.size()); - forAll(pbm, patchI) + forAll(pbm, patchi) { - boundaryFaces[patchI] = pbm[patchI]; + boundaryFaces[patchi] = pbm[patchi]; } wordList boundaryPatchNames(pbm.names()); PtrList boundaryDicts(pbm.size()); - forAll(pbm, patchI) + forAll(pbm, patchi) { OStringStream os; - os << pbm[patchI]; + os << pbm[patchi]; IStringStream is(os.str()); - boundaryDicts.set(patchI, new dictionary(is)); + boundaryDicts.set(patchi, new dictionary(is)); } word defaultBoundaryPatchName = "defaultFaces"; diff --git a/applications/test/patchRegion/Test-patchRegion.C b/applications/test/patchRegion/Test-patchRegion.C index c5c7c82cd1..d25573fe76 100644 --- a/applications/test/patchRegion/Test-patchRegion.C +++ b/applications/test/patchRegion/Test-patchRegion.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -59,8 +59,8 @@ int main(int argc, char *argv[]) const polyBoundaryMesh& pbm = mesh.boundaryMesh(); - label patchI = pbm.findPatchID(patchName); - const polyPatch& patch = pbm[patchI]; + label patchi = pbm.findPatchID(patchName); + const polyPatch& patch = pbm[patchi]; Info<< "Patch:" << patch.name() << endl; diff --git a/applications/test/router/Test-processorRouter.C b/applications/test/router/Test-processorRouter.C index 2c6e5b1e6d..62fd7f2a9d 100644 --- a/applications/test/router/Test-processorRouter.C +++ b/applications/test/router/Test-processorRouter.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 @@ -52,9 +52,9 @@ labelList procNeighbours(const polyMesh& mesh) label nNeighbours = 0; - forAll(mesh.boundaryMesh(), patchI) + forAll(mesh.boundaryMesh(), patchi) { - if (isA(mesh.boundaryMesh()[patchI])) + if (isA(mesh.boundaryMesh()[patchi])) { nNeighbours++; } @@ -64,11 +64,11 @@ labelList procNeighbours(const polyMesh& mesh) nNeighbours = 0; - forAll(mesh.boundaryMesh(), patchI) + forAll(mesh.boundaryMesh(), patchi) { - if (isA(mesh.boundaryMesh()[patchI])) + if (isA(mesh.boundaryMesh()[patchi])) { - const polyPatch& patch = mesh.boundaryMesh()[patchI]; + const polyPatch& patch = mesh.boundaryMesh()[patchi]; const processorPolyPatch& procPatch = refCast(patch); diff --git a/applications/test/volPointInterpolation/Test-volPointInterpolation.C b/applications/test/volPointInterpolation/Test-volPointInterpolation.C index 96ffeeac37..1e171ee689 100644 --- a/applications/test/volPointInterpolation/Test-volPointInterpolation.C +++ b/applications/test/volPointInterpolation/Test-volPointInterpolation.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -70,11 +70,11 @@ int main(int argc, char *argv[]) const pointBoundaryMesh& pbm = pMesh.boundary(); Info<< "pointMesh boundary" << nl; - forAll(pbm, patchI) + forAll(pbm, patchi) { - Info<< "patch=" << pbm[patchI].name() - << ", type=" << pbm[patchI].type() - << ", coupled=" << pbm[patchI].coupled() + Info<< "patch=" << pbm[patchi].name() + << ", type=" << pbm[patchi].type() + << ", coupled=" << pbm[patchi].coupled() << endl; } @@ -83,10 +83,10 @@ int main(int argc, char *argv[]) pointScalarField pp(pInterp.interpolate(p)); Info<< pp.name() << " boundary" << endl; - forAll(pp.boundaryField(), patchI) + forAll(pp.boundaryField(), patchi) { - Info<< pbm[patchI].name() << " coupled=" - << pp.boundaryField()[patchI].coupled()<< endl; + Info<< pbm[patchi].name() << " coupled=" + << pp.boundaryField()[patchi].coupled()<< endl; } pp.write(); diff --git a/applications/utilities/mesh/advanced/PDRMesh/PDRMesh.C b/applications/utilities/mesh/advanced/PDRMesh/PDRMesh.C index 0f6ad2efe3..c6b184c231 100644 --- a/applications/utilities/mesh/advanced/PDRMesh/PDRMesh.C +++ b/applications/utilities/mesh/advanced/PDRMesh/PDRMesh.C @@ -126,7 +126,7 @@ void subsetVolFields ( const fvMeshSubset& subsetter, const IOobjectList& objectsList, - const label patchI, + const label patchi, const Type& exposedValue, const word GeomVolType, PtrList>& subFields @@ -152,15 +152,15 @@ void subsetVolFields subFields.set(i, subsetter.interpolate(volField)); - // Explicitly set exposed faces (in patchI) to exposedValue. - if (patchI >= 0) + // Explicitly set exposed faces (in patchi) to exposedValue. + if (patchi >= 0) { fvPatchField& fld = - subFields[i++].boundaryField()[patchI]; + subFields[i++].boundaryFieldRef()[patchi]; label newStart = fld.patch().patch().start(); - label oldPatchI = subsetter.patchMap()[patchI]; + label oldPatchI = subsetter.patchMap()[patchi]; if (oldPatchI == -1) { @@ -198,7 +198,7 @@ void subsetSurfaceFields ( const fvMeshSubset& subsetter, const IOobjectList& objectsList, - const label patchI, + const label patchi, const Type& exposedValue, const word GeomSurfType, PtrList>& subFields @@ -225,15 +225,15 @@ void subsetSurfaceFields subFields.set(i, subsetter.interpolate(volField)); - // Explicitly set exposed faces (in patchI) to exposedValue. - if (patchI >= 0) + // Explicitly set exposed faces (in patchi) to exposedValue. + if (patchi >= 0) { fvsPatchField& fld = - subFields[i++].boundaryField()[patchI]; + subFields[i++].boundaryFieldRef()[patchi]; label newStart = fld.patch().patch().start(); - label oldPatchI = subsetter.patchMap()[patchI]; + label oldPatchI = subsetter.patchMap()[patchi]; if (oldPatchI == -1) { @@ -291,16 +291,19 @@ void initCreatedPatches { GeoField& field = const_cast(*fieldIter()); - forAll(field.boundaryField(), patchi) + typename GeoField::GeometricBoundaryField& fieldBf = + field.boundaryFieldRef(); + + forAll(fieldBf, patchi) { if (map.oldPatchSizes()[patchi] == 0) { // Not mapped. - field.boundaryField()[patchi] = initValue; + fieldBf[patchi] = initValue; - if (field.boundaryField()[patchi].fixesValue()) + if (fieldBf[patchi].fixesValue()) { - field.boundaryField()[patchi] == initValue; + fieldBf[patchi] == initValue; } } } @@ -526,9 +529,9 @@ void createBaffles // Wrapper around find patch. Also makes sure same patch in parallel. label findPatch(const polyBoundaryMesh& patches, const word& patchName) { - label patchI = patches.findPatchID(patchName); + label patchi = patches.findPatchID(patchName); - if (patchI == -1) + if (patchi == -1) { FatalErrorInFunction << "Illegal patch " << patchName @@ -538,20 +541,20 @@ label findPatch(const polyBoundaryMesh& patches, const word& patchName) // Check same patch for all procs { - label newPatch = patchI; + label newPatch = patchi; reduce(newPatch, minOp