From ae36f5f504dcff9613393b8be2647d56d015f7bf Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Thu, 9 Aug 2018 11:27:36 +0200 Subject: [PATCH] ENH: change argList get<> and getList<> from read<>, readList<> - more consistent with dictionary method naming. The get<> or getList<> returns a value, doesn't read into a existing location. --- .../test/PointEdgeWave/Test-PointEdgeWave.C | 2 +- applications/test/argList/Test-argList.C | 11 ++++++- .../test/decomposePar/Test-decomposePar.C | 8 ++--- .../findCell-octree/Test-findCell-octree.C | 2 +- .../test/labelRanges/Test-labelRanges.C | 4 +-- .../momentOfInertia/Test-momentOfInertia.C | 2 +- applications/test/spline/Test-spline.C | 2 +- .../Test-surfaceMeshConvert.C | 2 +- .../combinePatchFaces/combinePatchFaces.C | 8 +++-- .../refineWallLayer/refineWallLayer.C | 4 +-- .../mesh/advanced/splitCells/splitCells.C | 4 +-- .../mesh/conversion/ansysToFoam/ansysToFoam.L | 2 +- .../mesh/conversion/ccm/ccmToFoam/ccmToFoam.C | 2 +- .../mesh/conversion/cfx4ToFoam/cfx4ToFoam.C | 2 +- .../mesh/conversion/fireToFoam/fireToFoam.C | 2 +- .../fluentMeshToFoam/fluentMeshToFoam.L | 2 +- .../foamToStarMesh/foamToStarMesh.C | 2 +- .../conversion/gambitToFoam/gambitToFoam.L | 2 +- .../conversion/plot3dToFoam/plot3dToFoam.C | 2 +- .../mesh/conversion/star4ToFoam/star4ToFoam.C | 2 +- .../foamyHexMeshSurfaceSimplify_non_octree.C | 2 +- .../generation/snappyHexMesh/snappyHexMesh.C | 2 +- .../mesh/manipulation/autoPatch/autoPatch.C | 2 +- .../manipulation/deformedGeom/deformedGeom.C | 2 +- .../orientFaceZone/orientFaceZone.C | 2 +- .../polyDualMesh/polyDualMeshApp.C | 2 +- .../mesh/manipulation/rotateMesh/rotateMesh.C | 7 ++--- .../mesh/manipulation/subsetMesh/subsetMesh.C | 6 ++-- .../transformPoints/transformPoints.C | 2 +- .../foamToEnsight/foamToEnsight.C | 4 +-- .../lumpedPointMovement/lumpedPointMovement.C | 7 ++--- .../createExternalCoupledPatchGeometry.C | 2 +- .../surfaceBooleanFeatures.C | 3 +- .../surface/surfaceClean/surfaceClean.C | 4 +-- .../surface/surfaceCoarsen/surfaceCoarsen.C | 2 +- .../surface/surfaceHookUp/surfaceHookUp.C | 2 +- .../surface/surfaceInertia/surfaceInertia.C | 2 +- .../surface/surfaceInflate/surfaceInflate.C | 4 +-- .../surfaceLambdaMuSmooth.C | 6 ++-- .../surfaceMeshTriangulate.C | 7 ++--- .../surface/surfaceOrient/surfaceOrient.C | 2 +- .../surfacePointMerge/surfacePointMerge.C | 2 +- .../surfaceTransformPoints.C | 2 +- .../functionObjectList/functionObjectList.C | 2 +- src/OpenFOAM/global/argList/argList.C | 4 +-- src/OpenFOAM/global/argList/argList.H | 31 ++++++++++++------- src/OpenFOAM/global/argList/argListI.H | 20 ++++++------ 47 files changed, 101 insertions(+), 99 deletions(-) diff --git a/applications/test/PointEdgeWave/Test-PointEdgeWave.C b/applications/test/PointEdgeWave/Test-PointEdgeWave.C index ff422a2943..0be9e261f9 100644 --- a/applications/test/PointEdgeWave/Test-PointEdgeWave.C +++ b/applications/test/PointEdgeWave/Test-PointEdgeWave.C @@ -51,7 +51,7 @@ int main(int argc, char *argv[]) labelList patchIDs ( - pbm.patchSet(args.readList(1)).sortedToc() + pbm.patchSet(args.getList(1)).sortedToc() ); Info<< "Starting walk from patches " diff --git a/applications/test/argList/Test-argList.C b/applications/test/argList/Test-argList.C index 9db0906c6a..ac62fce0ba 100644 --- a/applications/test/argList/Test-argList.C +++ b/applications/test/argList/Test-argList.C @@ -108,7 +108,9 @@ int main(int argc, char *argv[]) if (args.found("label")) { Info<< "-label = " << args.opt