From 4dbc23c141f31aecb61c98fe299c3fb0a686ecda Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 3 Feb 2023 17:12:31 +0000 Subject: [PATCH] ListOps::identity -> identityMap to avoid confusion with the tensor identity. --- .../BlendedInterfacialModel.C | 2 +- .../test/Circulator/Test-Circulator.C | 12 +++---- .../test/CompactIOList/Test-CompactIOList.C | 6 ++-- .../test/DynamicList/Test-DynamicList.C | 4 +-- applications/test/Function1/Test-Function1.C | 4 +-- .../Test-GAMGAgglomeration.C | 4 +-- applications/test/ListOps/Test-ListOps.C | 26 +++++++------- .../Test-PatchEdgeFaceWave.C | 4 +-- .../test/PatchTools/Test-PatchTools.C | 6 ++-- .../Test-findSphereFeatureEdges-octree.C | 4 +-- .../momentOfInertia/Test-momentOfInertia.C | 4 +-- .../Test-polygonTriangulate.C | 4 +-- .../mesh/generation/extrudeMesh/extrudeMesh.C | 6 ++-- .../extrudeToRegionMesh/extrudeToRegionMesh.C | 9 +++-- .../manipulation/mergeBaffles/mergeBaffles.C | 4 +-- .../manipulation/polyDualMesh/polyDualMesh.C | 6 ++-- .../mesh/manipulation/refineMesh/refineMesh.C | 4 +-- .../manipulation/renumberMesh/renumberMesh.C | 10 +++--- .../splitMeshRegions/splitMeshRegions.C | 6 ++-- .../foamToTecplot360/foamToTecplot360.C | 4 +-- .../faceAgglomerate/faceAgglomerate.C | 6 ++-- .../surface/surfaceHookUp/surfaceHookUp.C | 4 +-- .../surfaceRefineRedGreen.C | 4 +-- .../boundSphere/boundSphereTemplates.C | 6 ++-- .../algorithms/indexedOctree/indexedOctree.C | 4 +-- .../algorithms/indexedOctree/treeDataCell.C | 4 +-- .../polygonTriangulate/polygonTriangulate.C | 4 +-- .../Circulators/Circulator/Circulator.H | 4 +-- .../ConstCirculator/ConstCirculator.H | 6 ++-- .../Lists/Distribution/Distribution.C | 4 +-- .../containers/Lists/ListOps/ListOps.C | 4 +-- .../containers/Lists/ListOps/ListOps.H | 4 +-- src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C | 4 +-- .../collatedFileOperation/OFstreamCollator.C | 6 ++-- .../masterUncollatedFileOperation.C | 4 +-- .../GAMGAgglomeration/GAMGAgglomeration.C | 4 +-- .../dummyAgglomeration/dummyAgglomeration.C | 4 +-- .../cellMatcher/degenerateMatcher.C | 4 +-- .../meshShapes/cellMatcher/hexMatcher.C | 4 +-- .../meshShapes/cellMatcher/prismMatcher.C | 4 +-- .../meshShapes/cellMatcher/pyrMatcher.C | 4 +-- .../meshShapes/cellMatcher/tetMatcher.C | 4 +-- .../meshShapes/cellMatcher/tetWedgeMatcher.C | 4 +-- .../meshShapes/cellMatcher/wedgeMatcher.C | 4 +-- .../polyMesh/globalMeshData/globalMeshData.C | 2 +- .../polyDistributionMap/distributionMapBase.C | 10 +++--- .../PatchTools/PatchToolsGatherAndMerge.C | 4 +-- .../primitives/MatrixSpace/MatrixSpace.H | 4 +-- .../primitives/MatrixSpace/MatrixSpaceI.H | 4 +-- .../spatialTensor/spatialTensor.C | 4 +-- src/Pstream/mpi/UPstream.C | 4 +-- .../ensight/part/ensightPartFaces.C | 4 +-- .../meshReader/createPolyBoundary.C | 4 +-- .../meshReader/starcd/STARCDMeshReader.C | 4 +-- src/conversion/meshTables/cellTable.C | 4 +-- .../fvMeshDistribute/fvMeshDistribute.C | 36 +++++++++---------- src/dynamicMesh/fvMeshSubset/fvMeshSubset.C | 6 ++-- src/dynamicMesh/meshCut/cellCuts/cellCuts.C | 6 ++-- .../motionSmoother/motionSmootherAlgoCheck.C | 4 +-- .../perfectInterface/perfectInterface.C | 6 ++-- src/dynamicMesh/polyMeshAdder/polyMeshAdder.C | 4 +-- .../polyMeshFilter/polyMeshFilter.C | 6 ++-- .../polyTopoChange/combineFaces.C | 4 +-- .../polyTopoChange/hexRef8/hexRef8.C | 6 ++-- .../polyTopoChange/polyTopoChange.C | 12 +++---- src/finiteVolume/fvMesh/fvMesh.C | 4 +-- .../singleCellFvMesh/singleCellFvMesh.C | 4 +-- .../singleCellFvMeshInterpolate.C | 4 +-- .../fvMeshToFvMesh/fvMeshToFvMeshTemplates.C | 4 +-- .../surfaceFieldValue/surfaceFieldValue.C | 4 +-- .../field/layerAverage/layerAverage.C | 4 +-- .../patchCutLayerAverage.C | 6 ++-- .../pairPatchAgglomeration.C | 4 +-- .../moving/fvMeshStitchersMoving.C | 4 +-- .../derived/rotorDiskSource/rotorDiskSource.C | 2 +- .../basic/InteractionLists/InteractionLists.C | 8 ++--- .../ParticleCollector/ParticleCollector.C | 6 ++-- .../displacementMeshMoverMotionSolver.C | 4 +-- .../medialAxisMeshMover.C | 6 ++-- .../meshRefinement/meshRefinement.C | 6 ++-- .../meshRefinement/meshRefinementBaffles.C | 2 +- .../meshRefinementProblemCells.C | 4 +-- .../meshRefinement/meshRefinementTemplates.C | 6 ++-- .../refinementFeatures/refinementFeatures.C | 8 ++--- .../refinementSurfaces/refinementSurfaces.C | 4 +-- .../snappyHexMeshDriver/snappyLayerDriver.C | 10 +++--- .../snappyLayerDriverShrink.C | 20 +++++------ .../snappyHexMeshDriver/snappySnapDriver.C | 4 +-- src/meshTools/cutPoly/cutPoly.C | 4 +-- .../extendedEdgeMesh/extendedEdgeMesh.C | 23 ++++++------ .../extendedEdgeMeshTemplates.C | 4 +-- .../extendedFeatureEdgeMeshTemplates.C | 4 +-- src/meshTools/indexedOctree/treeDataFace.C | 6 ++-- .../mappedPatchBase/mappedPatchBase.C | 2 +- .../meshToMesh/meshToMeshParallelOps.C | 4 +-- .../nonConformalBoundary.C | 4 +-- src/meshTools/patchDist/wallFace/wallFaceI.H | 4 +-- .../intersection/intersectionPatchToPatch.C | 6 ++-- .../patchToPatch/rays/raysPatchToPatch.C | 4 +-- src/meshTools/regionSplit/localPointRegion.C | 2 +- .../searchableExtrudedCircle.C | 4 +-- .../searchableSurfaces/searchableSurfaces.C | 10 +++--- .../searchableSurfacesQueries.C | 4 +-- .../triSurfaceMesh/triSurfaceMesh.C | 4 +-- .../planeToFaceZone/planeToFaceZone.C | 4 +-- src/meshTools/sets/polyCellSet/polyCellSet.C | 2 +- .../triIntersect/triIntersectTemplates.C | 4 +-- .../surfaceFeatures/surfaceFeatures.C | 4 +-- .../multiLevelDecomp/multiLevelDecomp.C | 8 ++--- .../decompose/metisDecomp/metisDecomp.C | 4 +-- .../decompose/ptscotchDecomp/ptscotchDecomp.C | 4 +-- .../decompose/scotchDecomp/scotchDecomp.C | 4 +-- .../decompose/zoltanDecomp/zoltanDecomp.C | 4 +-- .../distributedTriSurfaceMesh.C | 12 +++---- .../parallel/domainDecompositionReconstruct.C | 13 +++---- .../CuthillMcKeeRenumber.C | 4 +-- .../randomRenumber/randomRenumber.C | 4 +-- .../renumberMethod/renumberMethod.C | 4 +-- .../springRenumber/springRenumber.C | 6 ++-- src/sampling/coordSet/coordSet.C | 8 ++--- .../sampledSet/arcUniform/arcUniform.C | 4 +-- .../cellSetSampledSet/cellSetSampledSet.C | 4 +-- .../faceSetSampledSet/faceSetSampledSet.C | 4 +-- .../sampledSet/lineUniform/lineUniform.C | 4 +-- .../sampledSet/writers/raw/rawSetWriter.C | 4 +-- 125 files changed, 351 insertions(+), 346 deletions(-) diff --git a/applications/solvers/modules/multiphaseEuler/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C b/applications/solvers/modules/multiphaseEuler/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C index 34e376e64e..62ada17c55 100644 --- a/applications/solvers/modules/multiphaseEuler/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C +++ b/applications/solvers/modules/multiphaseEuler/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C @@ -541,7 +541,7 @@ void Foam::BlendedInterfacialModel::postProcessBlendingCoefficients { // Single axis, using the first phase as the x-coordinate static const label nDivisions = 128; - const scalarField divisionis(scalarList(identity(nDivisions))); + const scalarField divisionis(scalarList(identityMap(nDivisions))); fieldNames[0] = fluid.phases()[0].volScalarField::name(); fieldNames[1] = fluid.phases()[1].volScalarField::name(); fields.set(0, new scalarField(divisionis/(nDivisions - 1))); diff --git a/applications/test/Circulator/Test-Circulator.C b/applications/test/Circulator/Test-Circulator.C index 837697508f..5773ae9010 100644 --- a/applications/test/Circulator/Test-Circulator.C +++ b/applications/test/Circulator/Test-Circulator.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) Info<< "Test const circulator. First go forwards, then backwards." << nl << endl; - face f(identity(4)); + face f(identityMap(4)); ConstCirculator cStart(f); @@ -95,7 +95,7 @@ int main(int argc, char *argv[]) Info<< nl << nl << "Compare two faces: " << endl; - face a(identity(5)); + face a(identityMap(5)); Info<< "Compare " << a << " and " << a << " Match = " << face::compare(a, a) << endl; @@ -127,11 +127,11 @@ int main(int argc, char *argv[]) Info<< "Compare " << g << " and " << h << " Match = " << face::compare(g, h) << endl; - face face1(identity(1)); + face face1(identityMap(1)); Info<< "Compare " << face1 << " and " << face1 << " Match = " << face::compare(face1, face1) << endl; - face face2(identity(1)+1); + face face2(identityMap(1)+1); Info<< "Compare " << face1 << " and " << face2 << " Match = " << face::compare(face1, face2) << endl; @@ -146,7 +146,7 @@ int main(int argc, char *argv[]) } while (cZero.circulate(CirculatorBase::direction::clockwise)); - fZero = face(identity(5)); + fZero = face(identityMap(5)); // circulator was invalidated so reset cZero = Circulator(fZero); diff --git a/applications/test/CompactIOList/Test-CompactIOList.C b/applications/test/CompactIOList/Test-CompactIOList.C index 3f5395beab..3f0d4da16a 100644 --- a/applications/test/CompactIOList/Test-CompactIOList.C +++ b/applications/test/CompactIOList/Test-CompactIOList.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -71,7 +71,7 @@ int main(int argc, char *argv[]) size ); - const face f(identity(4)); + const face f(identityMap(4)); forAll(faces2, i) { @@ -134,7 +134,7 @@ int main(int argc, char *argv[]) size ); - const face f(identity(4)); + const face f(identityMap(4)); forAll(faces2, i) { diff --git a/applications/test/DynamicList/Test-DynamicList.C b/applications/test/DynamicList/Test-DynamicList.C index 6f0d3cab57..da120bbff6 100644 --- a/applications/test/DynamicList/Test-DynamicList.C +++ b/applications/test/DynamicList/Test-DynamicList.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -208,7 +208,7 @@ int main(int argc, char *argv[]) dlE3 = dlE2; // assign identical printInfo("dlE3", dlE3, true); - DynamicList