diff --git a/applications/utilities/mesh/manipulation/subsetMesh/subsetMesh.C b/applications/utilities/mesh/manipulation/subsetMesh/subsetMesh.C index 0b68e1f7008cfb73bbbff8f0dfc5ddec2cf3ed6c..f20f3f4e68696f28a2f6b4b7925106e3c9cdcca3 100644 --- a/applications/utilities/mesh/manipulation/subsetMesh/subsetMesh.C +++ b/applications/utilities/mesh/manipulation/subsetMesh/subsetMesh.C @@ -446,7 +446,7 @@ int main(int argc, char *argv[]) // Default exposed patch id - labelList exposedPatchIDs(one(), -1); + labelList exposedPatchIDs(one{}, -1); if (args.found("patches")) { diff --git a/applications/utilities/postProcessing/dataConversion/foamToVTK/convertProcessorPatches.H b/applications/utilities/postProcessing/dataConversion/foamToVTK/convertProcessorPatches.H index cc2aba6bb3f5a8bf36074b6c70aca068e660a64a..70a1eead5fcf0666650b53c32e03381aff54a2ac 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToVTK/convertProcessorPatches.H +++ b/applications/utilities/postProcessing/dataConversion/foamToVTK/convertProcessorPatches.H @@ -95,7 +95,7 @@ Description auto writer = autoPtr<vtk::patchWriter>::New ( meshProxy.mesh(), - labelList(one(), pp.index()), + labelList(one{}, pp.index()), writeOpts, nearCellValue, ( diff --git a/applications/utilities/postProcessing/dataConversion/foamToVTK/convertVolumeFields.H b/applications/utilities/postProcessing/dataConversion/foamToVTK/convertVolumeFields.H index d91da0a2933cb7d9566a2b8bd4c5dbdf9ed248c1..40eab7c23b8c535981d4bef1b220eb617fe469b7 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToVTK/convertVolumeFields.H +++ b/applications/utilities/postProcessing/dataConversion/foamToVTK/convertVolumeFields.H @@ -195,7 +195,7 @@ Description auto writer = autoPtr<vtk::patchWriter>::New ( meshProxy.mesh(), - labelList(one(), pp.index()), + labelList(one{}, pp.index()), writeOpts, nearCellValue, // Output patch: "boundary"/name diff --git a/applications/utilities/preProcessing/PDRsetFields/pdrFields/obstacles/PDRobstacle.C b/applications/utilities/preProcessing/PDRsetFields/pdrFields/obstacles/PDRobstacle.C index 91ccc58d14f2073aff90ead01e3be2b70ed09d2f..a13bba92bc35307392cb98e4d00ddf88fa525c5e 100644 --- a/applications/utilities/preProcessing/PDRsetFields/pdrFields/obstacles/PDRobstacle.C +++ b/applications/utilities/preProcessing/PDRsetFields/pdrFields/obstacles/PDRobstacle.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2019 OpenCFD Ltd. + Copyright (C) 2019-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -571,7 +571,7 @@ Foam::meshedSurface Foam::PDRobstacle::surface() const // pts += obs.pt; - faceList fcs(one(), face(identity(4))); + faceList fcs(one{}, face(identity(4))); surf.transfer(pts, fcs); diff --git a/applications/utilities/preProcessing/changeDictionary/changeDictionary.C b/applications/utilities/preProcessing/changeDictionary/changeDictionary.C index b9270ae1fd848d32d435d8607c432e4ea71e8aa1..7feceb54dedbaaaa47feb2afd09127649b3d812a 100644 --- a/applications/utilities/preProcessing/changeDictionary/changeDictionary.C +++ b/applications/utilities/preProcessing/changeDictionary/changeDictionary.C @@ -122,7 +122,7 @@ HashTable<wordList> extractPatchGroups(const dictionary& boundaryDict) } else { - groupToPatch.insert(groupName, wordList(one(), patchName)); + groupToPatch.insert(groupName, wordList(one{}, patchName)); } } } diff --git a/src/OpenFOAM/db/Time/timeSelector.C b/src/OpenFOAM/db/Time/timeSelector.C index 0f009f52d84dc635998dc6ce53dd22e7010c963f..37b199bb0d6162a659615632fa5bdb9678c28ae1 100644 --- a/src/OpenFOAM/db/Time/timeSelector.C +++ b/src/OpenFOAM/db/Time/timeSelector.C @@ -287,7 +287,7 @@ Foam::instantList Foam::timeSelector::selectIfPresent } // No timeSelector option specified. Do not change runTime. - return instantList(one(), instant(runTime.value(), runTime.timeName())); + return instantList(one{}, instant(runTime.value(), runTime.timeName())); } diff --git a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C index 2cb398068ad5eb3ce9b5b5ba6cf84cecca5b33ed..022ac5a30c6297a7bc970c9e2cfb3b0c9c96cfd4 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C @@ -497,7 +497,7 @@ Foam::polyBoundaryMesh::groupPatchIDs() const } else { - groupPatchIDs.insert(groupName, labelList(one(), patchi)); + groupPatchIDs.insert(groupName, labelList(one{}, patchi)); } } } diff --git a/src/finiteArea/faMesh/faBoundaryMesh/faBoundaryMesh.C b/src/finiteArea/faMesh/faBoundaryMesh/faBoundaryMesh.C index 08010734eb9e7a5c562872721c65cb788b9bf6cb..80fea6ac5453b9c6be4005bf46a455e02d3723b6 100644 --- a/src/finiteArea/faMesh/faBoundaryMesh/faBoundaryMesh.C +++ b/src/finiteArea/faMesh/faBoundaryMesh/faBoundaryMesh.C @@ -258,7 +258,7 @@ Foam::labelList Foam::faBoundaryMesh::indices if (patchId >= 0) { - return labelList(one(), patchId); + return labelList(one{}, patchId); } } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C index cfec36285c981eb5386109f41538546125b2103e..5bc42d46c60e32e721a634342a5a41dc837aa6f2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C @@ -209,7 +209,7 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs() if (volumetric_ || rhoName_ == "none") { - updateValues(one()); + updateValues(one{}); } else { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C index 8489ffd8137f3a1afca23d602794c2852eee076d..126158e7c44f92648188debaa7be85c3a7aff4b9 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C @@ -192,7 +192,7 @@ void Foam::flowRateOutletVelocityFvPatchVectorField::updateCoeffs() if (volumetric_ || rhoName_ == "none") { - updateValues(one()); + updateValues(one{}); } else { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C index ffb87ebbd57c2177644bb8b85da6f0f1f3283e1b..01da573f77221b0b75c9a42624811213eabd0f20 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C @@ -211,7 +211,7 @@ void Foam::matchedFlowRateOutletVelocityFvPatchVectorField::updateCoeffs() if (volumetric_) { - updateValues(inletPatchID, one(), one()); + updateValues(inletPatchID, one{}, one{}); } else { diff --git a/src/functionObjects/field/externalCoupled/externalCoupled.C b/src/functionObjects/field/externalCoupled/externalCoupled.C index 927e764d27fd461e45e1d257ec25cd1c8b9b649f..3760669f01fae3fe49e72ae46d45e6168a6eba65 100644 --- a/src/functionObjects/field/externalCoupled/externalCoupled.C +++ b/src/functionObjects/field/externalCoupled/externalCoupled.C @@ -616,7 +616,7 @@ bool Foam::functionObjects::externalCoupled::read(const dictionary& dict) regionToGroups_.insert ( regionGroupNames_.last(), - labelList(one(), nGroups) + labelList(one{}, nGroups) ); } groupNames_.append(groupName); diff --git a/src/functionObjects/utilities/vtkWrite/vtkWrite.C b/src/functionObjects/utilities/vtkWrite/vtkWrite.C index 7eaeb707fe692468954e49e58c944f6a2fdd93a4..7e0ca767acecfe940903f68a5fbb94ee8ade7f3c 100644 --- a/src/functionObjects/utilities/vtkWrite/vtkWrite.C +++ b/src/functionObjects/utilities/vtkWrite/vtkWrite.C @@ -457,7 +457,7 @@ bool Foam::functionObjects::vtkWrite::write() auto writer = autoPtr<vtk::patchWriter>::New ( meshProxy.mesh(), - labelList(one(), pp.index()), + labelList(one{}, pp.index()), writeOpts_, // Output name for patch: "boundary"/name ( diff --git a/src/mesh/blockMesh/PDRblockMesh/PDRblock.C b/src/mesh/blockMesh/PDRblockMesh/PDRblock.C index b8fa154114b4b8a33c76648d86145dec12a900ba..aa6170b92467366b435de88c7e5598f0374fd434 100644 --- a/src/mesh/blockMesh/PDRblockMesh/PDRblock.C +++ b/src/mesh/blockMesh/PDRblockMesh/PDRblock.C @@ -534,7 +534,7 @@ Foam::PDRblock::PDRblock bentry.name_ = "patch" + Foam::name(patchi); bentry.type_ = "patch"; bentry.size_ = 0; - bentry.faces_ = labelList(one(), patchi); + bentry.faces_ = labelList(one{}, patchi); } reset(xgrid, ygrid, zgrid); diff --git a/src/meshTools/edgeMesh/extendedEdgeMesh/extendedEdgeMesh.C b/src/meshTools/edgeMesh/extendedEdgeMesh/extendedEdgeMesh.C index 439efb3fdeb9850296ebf0a406146f07616bbda7..8fe226fe54c4a26c151133591ec6c1d4a866a4cf 100644 --- a/src/meshTools/edgeMesh/extendedEdgeMesh/extendedEdgeMesh.C +++ b/src/meshTools/edgeMesh/extendedEdgeMesh/extendedEdgeMesh.C @@ -484,7 +484,7 @@ Foam::extendedEdgeMesh::extendedEdgeMesh const boolList& surfBaffleRegions ) : - extendedEdgeMesh(one::minus()) + extendedEdgeMesh(one::minus{}) { // Extract and reorder the data from surfaceFeatures const triSurface& surf = sFeat.surface(); @@ -547,7 +547,7 @@ Foam::extendedEdgeMesh::extendedEdgeMesh const labelUList& featurePoints ) : - extendedEdgeMesh(one::minus()) + extendedEdgeMesh(one::minus{}) { sortPointsAndEdges ( diff --git a/src/meshTools/searchableSurfaces/searchableDisk/searchableDisk.H b/src/meshTools/searchableSurfaces/searchableDisk/searchableDisk.H index 43594ae8d740095339dfe7887c5bdad0319e5154..23c66670e08634ba721e4ec177bb9085edbeb14d 100644 --- a/src/meshTools/searchableSurfaces/searchableDisk/searchableDisk.H +++ b/src/meshTools/searchableSurfaces/searchableDisk/searchableDisk.H @@ -161,7 +161,7 @@ public: // Usually the element centres (should be of length size()). virtual tmp<pointField> coordinates() const { - return tmp<pointField>::New(one(), origin()); + return tmp<pointField>::New(one{}, origin()); } //- Get bounding spheres (centre and radius squared), one per element. diff --git a/src/meshTools/sets/cellSources/boxToCell/boxToCell.C b/src/meshTools/sets/cellSources/boxToCell/boxToCell.C index 4cd28c1306459937bb1450780834125e9df9b48e..65e71cc9028fe0edfe9ed0c09120240d905b3d5f 100644 --- a/src/meshTools/sets/cellSources/boxToCell/boxToCell.C +++ b/src/meshTools/sets/cellSources/boxToCell/boxToCell.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -137,7 +137,7 @@ Foam::boxToCell::boxToCell ) : topoSetCellSource(mesh), - bbs_(one(), treeBoundBox(checkIs(is))) + bbs_(one{}, treeBoundBox(checkIs(is))) {} diff --git a/src/meshTools/sets/cellSources/cellToCell/cellToCell.C b/src/meshTools/sets/cellSources/cellToCell/cellToCell.C index 06607dad62cd18b274158d0f8ff30884608751a2..3a03593ae61f9275d69a98039165813c437da35c 100644 --- a/src/meshTools/sets/cellSources/cellToCell/cellToCell.C +++ b/src/meshTools/sets/cellSources/cellToCell/cellToCell.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -60,7 +60,7 @@ Foam::cellToCell::cellToCell ) : topoSetCellSource(mesh), - names_(one(), setName) + names_(one{}, setName) {} @@ -89,7 +89,7 @@ Foam::cellToCell::cellToCell ) : topoSetCellSource(mesh), - names_(one(), word(checkIs(is))) + names_(one{}, word(checkIs(is))) {} diff --git a/src/meshTools/sets/cellSources/faceToCell/faceToCell.C b/src/meshTools/sets/cellSources/faceToCell/faceToCell.C index b1f1b8bfabdfe2981033a3a36896ab064c30e4d8..c477fb319c5d4b7a24d0ab6a2a670d4c067ac555 100644 --- a/src/meshTools/sets/cellSources/faceToCell/faceToCell.C +++ b/src/meshTools/sets/cellSources/faceToCell/faceToCell.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -144,7 +144,7 @@ Foam::faceToCell::faceToCell ) : topoSetCellSource(mesh), - names_(one(), setName), + names_(one{}, setName), option_(option) {} @@ -175,7 +175,7 @@ Foam::faceToCell::faceToCell ) : topoSetCellSource(mesh), - names_(one(), word(checkIs(is))), + names_(one{}, word(checkIs(is))), option_(faceActionNames_.read(checkIs(is))) {} diff --git a/src/meshTools/sets/cellSources/faceZoneToCell/faceZoneToCell.C b/src/meshTools/sets/cellSources/faceZoneToCell/faceZoneToCell.C index 8d58d16a657e2570cf6509b551f68aba5a3cb204..ee6493d14c462fdbe62608738ba8b02649dee6c2 100644 --- a/src/meshTools/sets/cellSources/faceZoneToCell/faceZoneToCell.C +++ b/src/meshTools/sets/cellSources/faceZoneToCell/faceZoneToCell.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2016-2018 OpenCFD Ltd. + Copyright (C) 2016-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -120,7 +120,7 @@ Foam::faceZoneToCell::faceZoneToCell ) : topoSetCellSource(mesh), - selectedZones_(one(), zoneName), + selectedZones_(one{}, zoneName), option_(option) {} @@ -152,7 +152,7 @@ Foam::faceZoneToCell::faceZoneToCell ) : topoSetCellSource(mesh), - selectedZones_(one(), wordRe(checkIs(is))), + selectedZones_(one{}, wordRe(checkIs(is))), option_(faceActionNames_.read(checkIs(is))) {} diff --git a/src/meshTools/sets/cellSources/patchToCell/patchToCell.C b/src/meshTools/sets/cellSources/patchToCell/patchToCell.C index 201a81960bb547c8c1b1e64805a1d98520e87f46..2233e3f400233f38b88e7afa957dc072dbad06eb 100644 --- a/src/meshTools/sets/cellSources/patchToCell/patchToCell.C +++ b/src/meshTools/sets/cellSources/patchToCell/patchToCell.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -115,7 +115,7 @@ Foam::patchToCell::patchToCell ) : topoSetCellSource(mesh), - selectedPatches_(one(), patchName) + selectedPatches_(one{}, patchName) {} @@ -145,7 +145,7 @@ Foam::patchToCell::patchToCell ) : topoSetCellSource(mesh), - selectedPatches_(one(), wordRe(checkIs(is))) + selectedPatches_(one{}, wordRe(checkIs(is))) {} diff --git a/src/meshTools/sets/cellSources/pointToCell/pointToCell.C b/src/meshTools/sets/cellSources/pointToCell/pointToCell.C index f33e35e1c4613c5346248a937c2aac20f665e8d4..a329352339936e2d7caf356d43969c82cdd79768 100644 --- a/src/meshTools/sets/cellSources/pointToCell/pointToCell.C +++ b/src/meshTools/sets/cellSources/pointToCell/pointToCell.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018-2019 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -124,7 +124,7 @@ Foam::pointToCell::pointToCell ) : topoSetCellSource(mesh), - names_(one(), setName), + names_(one{}, setName), option_(option) {} @@ -155,7 +155,7 @@ Foam::pointToCell::pointToCell ) : topoSetCellSource(mesh), - names_(one(), word(checkIs(is))), + names_(one{}, word(checkIs(is))), option_(pointActionNames_.read(checkIs(is))) {} diff --git a/src/meshTools/sets/cellSources/zoneToCell/zoneToCell.C b/src/meshTools/sets/cellSources/zoneToCell/zoneToCell.C index 139ede1a4a2333a4dbd80603b4c88242605f2175..c8ed932681316f8dec8ab790fa3aca8852c4c901 100644 --- a/src/meshTools/sets/cellSources/zoneToCell/zoneToCell.C +++ b/src/meshTools/sets/cellSources/zoneToCell/zoneToCell.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -116,7 +116,7 @@ Foam::zoneToCell::zoneToCell ) : topoSetCellSource(mesh), - selectedZones_(one(), zoneName) + selectedZones_(one{}, zoneName) {} @@ -146,7 +146,7 @@ Foam::zoneToCell::zoneToCell ) : topoSetCellSource(mesh), - selectedZones_(one(), wordRe(checkIs(is))) + selectedZones_(one{}, wordRe(checkIs(is))) {} diff --git a/src/meshTools/sets/faceSources/boxToFace/boxToFace.C b/src/meshTools/sets/faceSources/boxToFace/boxToFace.C index 853a8a87b02a5b11ca13ef7880b7a8904266ca10..c5e128a114f5f1369c7676fb9f10b75451793171 100644 --- a/src/meshTools/sets/faceSources/boxToFace/boxToFace.C +++ b/src/meshTools/sets/faceSources/boxToFace/boxToFace.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -137,7 +137,7 @@ Foam::boxToFace::boxToFace ) : topoSetFaceSource(mesh), - bbs_(one(), treeBoundBox(checkIs(is))) + bbs_(one{}, treeBoundBox(checkIs(is))) {} diff --git a/src/meshTools/sets/faceSources/cellToFace/cellToFace.C b/src/meshTools/sets/faceSources/cellToFace/cellToFace.C index 03285f0b047eb0c4e7fb1fca49237af92f8d4d98..83c092b7982e503b40d84992044e8b731eaab1b1 100644 --- a/src/meshTools/sets/faceSources/cellToFace/cellToFace.C +++ b/src/meshTools/sets/faceSources/cellToFace/cellToFace.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -161,7 +161,7 @@ Foam::cellToFace::cellToFace ) : topoSetFaceSource(mesh), - names_(one(), setName), + names_(one{}, setName), option_(option) {} @@ -192,7 +192,7 @@ Foam::cellToFace::cellToFace ) : topoSetFaceSource(mesh), - names_(one(), word(checkIs(is))), + names_(one{}, word(checkIs(is))), option_(cellActionNames_.read(checkIs(is))) {} diff --git a/src/meshTools/sets/faceSources/faceToFace/faceToFace.C b/src/meshTools/sets/faceSources/faceToFace/faceToFace.C index 905109f19d80b747609ada3d046e37690a48171e..22aca8ba6b2147417efa39168eb120f84f936aad 100644 --- a/src/meshTools/sets/faceSources/faceToFace/faceToFace.C +++ b/src/meshTools/sets/faceSources/faceToFace/faceToFace.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -60,7 +60,7 @@ Foam::faceToFace::faceToFace ) : topoSetFaceSource(mesh), - names_(one(), setName) + names_(one{}, setName) {} @@ -89,7 +89,7 @@ Foam::faceToFace::faceToFace ) : topoSetFaceSource(mesh), - names_(one(), word(checkIs(is))) + names_(one{}, word(checkIs(is))) {} diff --git a/src/meshTools/sets/faceSources/patchToFace/patchToFace.C b/src/meshTools/sets/faceSources/patchToFace/patchToFace.C index 731c9543933222c9d665d396aa102e2232f457e9..8b1ddc0a2e86e9f4320824e9b0e8cfe7c05cc6a5 100644 --- a/src/meshTools/sets/faceSources/patchToFace/patchToFace.C +++ b/src/meshTools/sets/faceSources/patchToFace/patchToFace.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -116,7 +116,7 @@ Foam::patchToFace::patchToFace ) : topoSetFaceSource(mesh), - selectedPatches_(one(), patchName) + selectedPatches_(one{}, patchName) {} @@ -146,7 +146,7 @@ Foam::patchToFace::patchToFace ) : topoSetFaceSource(mesh), - selectedPatches_(one(), wordRe(checkIs(is))) + selectedPatches_(one{}, wordRe(checkIs(is))) {} diff --git a/src/meshTools/sets/faceSources/pointToFace/pointToFace.C b/src/meshTools/sets/faceSources/pointToFace/pointToFace.C index 584a32d660aaa71e6ba707dcbc7be55796fdd03e..7b40b6daef51235de504f831a00a0f64e1e7453c 100644 --- a/src/meshTools/sets/faceSources/pointToFace/pointToFace.C +++ b/src/meshTools/sets/faceSources/pointToFace/pointToFace.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -170,7 +170,7 @@ Foam::pointToFace::pointToFace ) : topoSetFaceSource(mesh), - names_(one(), setName), + names_(one{}, setName), option_(option) {} @@ -201,7 +201,7 @@ Foam::pointToFace::pointToFace ) : topoSetFaceSource(mesh), - names_(one(), word(checkIs(is))), + names_(one{}, word(checkIs(is))), option_(pointActionNames_.read(checkIs(is))) {} diff --git a/src/meshTools/sets/faceSources/zoneToFace/zoneToFace.C b/src/meshTools/sets/faceSources/zoneToFace/zoneToFace.C index 5475d90018a157b57ab32d69c35e3cb7a2473f86..36da6b796555630c88d81db4aebe2d478660e66d 100644 --- a/src/meshTools/sets/faceSources/zoneToFace/zoneToFace.C +++ b/src/meshTools/sets/faceSources/zoneToFace/zoneToFace.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -117,7 +117,7 @@ Foam::zoneToFace::zoneToFace ) : topoSetFaceSource(mesh), - selectedZones_(one(), zoneName) + selectedZones_(one{}, zoneName) {} @@ -147,7 +147,7 @@ Foam::zoneToFace::zoneToFace ) : topoSetFaceSource(mesh), - selectedZones_(one(), wordRe(checkIs(is))) + selectedZones_(one{}, wordRe(checkIs(is))) {} diff --git a/src/meshTools/sets/pointSources/boxToPoint/boxToPoint.C b/src/meshTools/sets/pointSources/boxToPoint/boxToPoint.C index 3b66ec6d35e9e6415cf9a47b4b3b915559837b68..a972adb52bed8adac497fa19f7ff2e24e41524c6 100644 --- a/src/meshTools/sets/pointSources/boxToPoint/boxToPoint.C +++ b/src/meshTools/sets/pointSources/boxToPoint/boxToPoint.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -137,7 +137,7 @@ Foam::boxToPoint::boxToPoint ) : topoSetPointSource(mesh), - bbs_(one(), treeBoundBox(checkIs(is))) + bbs_(one{}, treeBoundBox(checkIs(is))) {} diff --git a/src/meshTools/sets/pointSources/cellToPoint/cellToPoint.C b/src/meshTools/sets/pointSources/cellToPoint/cellToPoint.C index 3cb35485c2e0b856103d2607cf058071d0dc01ea..d0e733475588118a4707b943998cd00a54ae39f6 100644 --- a/src/meshTools/sets/pointSources/cellToPoint/cellToPoint.C +++ b/src/meshTools/sets/pointSources/cellToPoint/cellToPoint.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -98,7 +98,7 @@ Foam::cellToPoint::cellToPoint ) : topoSetPointSource(mesh), - names_(one(), setName), + names_(one{}, setName), option_(option) {} @@ -129,7 +129,7 @@ Foam::cellToPoint::cellToPoint ) : topoSetPointSource(mesh), - names_(one(), word(checkIs(is))), + names_(one{}, word(checkIs(is))), option_(cellActionNames_.read(checkIs(is))) {} diff --git a/src/meshTools/sets/pointSources/faceToPoint/faceToPoint.C b/src/meshTools/sets/pointSources/faceToPoint/faceToPoint.C index 3f7c561dafeeaa5dcf180b0de7d58298a88f6d99..6514ff754c4d94b50bad387bba76ce34a24c2069 100644 --- a/src/meshTools/sets/pointSources/faceToPoint/faceToPoint.C +++ b/src/meshTools/sets/pointSources/faceToPoint/faceToPoint.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018-2019 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -92,7 +92,7 @@ Foam::faceToPoint::faceToPoint ) : topoSetPointSource(mesh), - names_(one(), setName), + names_(one{}, setName), option_(option) {} @@ -123,7 +123,7 @@ Foam::faceToPoint::faceToPoint ) : topoSetPointSource(mesh), - names_(one(), word(checkIs(is))), + names_(one{}, word(checkIs(is))), option_(faceActionNames_.read(checkIs(is))) {} diff --git a/src/meshTools/sets/pointSources/pointToPoint/pointToPoint.C b/src/meshTools/sets/pointSources/pointToPoint/pointToPoint.C index d838064b6f6561189ad2386dbfd55a19c39ac655..5a877827194be3db2fb6bebe7cad09c48e6c62ae 100644 --- a/src/meshTools/sets/pointSources/pointToPoint/pointToPoint.C +++ b/src/meshTools/sets/pointSources/pointToPoint/pointToPoint.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -60,7 +60,7 @@ Foam::pointToPoint::pointToPoint ) : topoSetPointSource(mesh), - names_(one(), setName) + names_(one{}, setName) {} @@ -89,7 +89,7 @@ Foam::pointToPoint::pointToPoint ) : topoSetPointSource(mesh), - names_(one(), word(checkIs(is))) + names_(one{}, word(checkIs(is))) {} diff --git a/src/meshTools/sets/pointSources/zoneToPoint/zoneToPoint.C b/src/meshTools/sets/pointSources/zoneToPoint/zoneToPoint.C index 8952f2baf9a1cd97ca3760e1dfe5f1e286253187..604e4da83c763cffc125561fe9a0ae484a4c4e98 100644 --- a/src/meshTools/sets/pointSources/zoneToPoint/zoneToPoint.C +++ b/src/meshTools/sets/pointSources/zoneToPoint/zoneToPoint.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -117,7 +117,7 @@ Foam::zoneToPoint::zoneToPoint ) : topoSetPointSource(mesh), - selectedZones_(one(), zoneName) + selectedZones_(one{}, zoneName) {} @@ -147,7 +147,7 @@ Foam::zoneToPoint::zoneToPoint ) : topoSetPointSource(mesh), - selectedZones_(one(), wordRe(checkIs(is))) + selectedZones_(one{}, wordRe(checkIs(is))) {} diff --git a/src/sampling/surface/isoSurface/isoSurfaceTopo.C b/src/sampling/surface/isoSurface/isoSurfaceTopo.C index 0ac441ed6021a67ebb0d7bbf40a5931cd7fbe4b5..784260f72d0f23f9d479756ad555d85730317a81 100644 --- a/src/sampling/surface/isoSurface/isoSurfaceTopo.C +++ b/src/sampling/surface/isoSurface/isoSurfaceTopo.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2019 OpenFOAM Foundation - Copyright (C) 2019 OpenCFD Ltd. + Copyright (C) 2019-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -1326,7 +1326,7 @@ Foam::isoSurfaceTopo::isoSurfaceTopo } - surfZoneList allZones(one(), surfZone("allFaces", allTris.size())); + surfZoneList allZones(one{}, surfZone("allFaces", allTris.size())); MeshStorage::clear(); MeshStorage updated