From 683cfb9d97c6407772f63571cc2bd1151bacbe57 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 15 Apr 2016 11:32:42 +0100 Subject: [PATCH] vector::zero -> Zero --- .../dynamicIndexedOctree.C | 10 ++++---- .../algorithms/indexedOctree/indexedOctree.C | 10 ++++---- .../pointConstraint/pointConstraintI.H | 14 +++++------ .../CalcPatchToPatchWeights.C | 4 ++-- src/OpenFOAM/meshes/boundBox/boundBox.C | 16 ++++++------- src/OpenFOAM/meshes/boundBox/boundBoxI.H | 6 ++--- .../meshes/boundBox/boundBoxTemplates.C | 6 ++--- src/OpenFOAM/meshes/meshShapes/cell/cell.C | 8 +++---- .../meshes/meshShapes/cellModel/cellModel.C | 8 +++---- src/OpenFOAM/meshes/meshShapes/face/face.C | 10 ++++---- .../meshes/meshShapes/face/faceTemplates.C | 2 +- .../polyMesh/globalMeshData/globalMeshData.C | 2 +- src/OpenFOAM/meshes/polyMesh/polyMesh.C | 24 +++++++++---------- src/OpenFOAM/meshes/polyMesh/polyMeshClear.C | 8 +++---- .../meshes/polyMesh/polyMeshFromShapeMesh.C | 8 +++---- src/OpenFOAM/meshes/polyMesh/polyMeshIO.C | 8 +++---- src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C | 4 ++-- .../constraint/cyclic/cyclicPolyPatch.C | 14 +++++------ .../constraint/oldCyclic/oldCyclicPolyPatch.C | 12 +++++----- .../constraint/processor/processorPolyPatch.C | 4 ++-- .../constraint/wedge/wedgePolyPatch.C | 10 ++++---- .../PatchTools/PatchToolsNormals.C | 8 +++---- .../primitiveMeshCellCentresAndVols.C | 6 ++--- .../primitiveMeshCheck/primitiveMeshCheck.C | 2 +- .../primitiveMeshCheck/primitiveMeshTools.C | 6 ++--- .../primitiveMeshFaceCentresAndAreas.C | 8 +++---- .../primitiveShapes/objectHit/PointHit.H | 4 ++-- .../primitiveShapes/objectHit/PointIndexHit.H | 4 ++-- .../primitiveShapes/objectHit/pointHitSort.H | 4 ++-- .../meshes/primitiveShapes/plane/plane.C | 6 ++--- .../tetrahedron/tetrahedronI.H | 4 ++-- .../primitiveShapes/triangle/triangleI.H | 4 ++-- .../vectorTensorTransform.C | 6 ++--- .../vectorTensorTransformI.H | 6 ++--- .../primitives/quaternion/quaternion.C | 4 ++-- .../primitives/quaternion/quaternionI.H | 4 ++-- .../spatialTransform/spatialTransformI.H | 16 ++++++------- src/OpenFOAM/primitives/triad/triadI.H | 4 ++-- 38 files changed, 142 insertions(+), 142 deletions(-) diff --git a/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C b/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C index 043ea1558d..20475acead 100644 --- a/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C +++ b/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C @@ -1677,7 +1677,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findLine if ((startBit & endBit) != 0) { // Both start and end outside domain and in same block. - return pointIndexHit(false, vector::zero, -1); + return pointIndexHit(false, Zero, -1); } @@ -1691,7 +1691,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findLine // Track start to inside domain. if (!treeBb.intersects(start, end, trackStart)) { - return pointIndexHit(false, vector::zero, -1); + return pointIndexHit(false, Zero, -1); } } @@ -1700,7 +1700,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findLine // Track end to inside domain. if (!treeBb.intersects(end, trackStart, trackEnd)) { - return pointIndexHit(false, vector::zero, -1); + return pointIndexHit(false, Zero, -1); } } @@ -2129,7 +2129,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findNearest { scalar nearestDistSqr = startDistSqr; label nearestShapeI = -1; - point nearestPoint = vector::zero; + point nearestPoint = Zero; if (nodes_.size()) { @@ -2174,7 +2174,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findNearest } else { - nearestPoint = vector::zero; + nearestPoint = Zero; } return pointIndexHit(nearestShapeI != -1, nearestPoint, nearestShapeI); diff --git a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C index 4d79eef695..2480f2dc75 100644 --- a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C +++ b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C @@ -1710,7 +1710,7 @@ Foam::pointIndexHit Foam::indexedOctree::findLine if ((startBit & endBit) != 0) { // Both start and end outside domain and in same block. - return pointIndexHit(false, vector::zero, -1); + return pointIndexHit(false, Zero, -1); } @@ -1724,7 +1724,7 @@ Foam::pointIndexHit Foam::indexedOctree::findLine // Track start to inside domain. if (!treeBb.intersects(start, end, trackStart)) { - return pointIndexHit(false, vector::zero, -1); + return pointIndexHit(false, Zero, -1); } } @@ -1733,7 +1733,7 @@ Foam::pointIndexHit Foam::indexedOctree::findLine // Track end to inside domain. if (!treeBb.intersects(end, trackStart, trackEnd)) { - return pointIndexHit(false, vector::zero, -1); + return pointIndexHit(false, Zero, -1); } } @@ -2350,7 +2350,7 @@ Foam::pointIndexHit Foam::indexedOctree::findNearest { scalar nearestDistSqr = startDistSqr; label nearestShapeI = -1; - point nearestPoint = vector::zero; + point nearestPoint = Zero; if (nodes_.size()) { @@ -2401,7 +2401,7 @@ Foam::pointIndexHit Foam::indexedOctree::findNearest ) const { label nearestShapeI = -1; - point nearestPoint = vector::zero; + point nearestPoint = Zero; if (nodes_.size()) { diff --git a/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointConstraint/pointConstraintI.H b/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointConstraint/pointConstraintI.H index 82c1957c3b..27aa1debf4 100644 --- a/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointConstraint/pointConstraintI.H +++ b/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointConstraint/pointConstraintI.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -27,7 +27,7 @@ License inline Foam::pointConstraint::pointConstraint() : - Tuple2(0, vector::zero) + Tuple2(0, Zero) {} @@ -68,7 +68,7 @@ void Foam::pointConstraint::applyConstraint(const vector& cd) if (mag(cd & second()) > 1e-3) { first() = 3; - second() = vector::zero; + second() = Zero; } } } @@ -103,13 +103,13 @@ void Foam::pointConstraint::combine(const pointConstraint& pc) { // Different directions first() = 3; - second() = vector::zero; + second() = Zero; } } else { first() = 3; - second() = vector::zero; + second() = Zero; } } } @@ -131,7 +131,7 @@ Foam::tensor Foam::pointConstraint::constraintTransformation() const } else { - return tensor::zero; + return Zero; } } @@ -172,7 +172,7 @@ const // Knock out remaining vectors for (direction dir = n; dir < vecs.size(); dir++) { - vecs[dir] = vector::zero; + vecs[dir] = Zero; } tt = tensor(vecs[0], vecs[1], vecs[2]); diff --git a/src/OpenFOAM/interpolations/patchToPatchInterpolation/CalcPatchToPatchWeights.C b/src/OpenFOAM/interpolations/patchToPatchInterpolation/CalcPatchToPatchWeights.C index 6f9f1e8595..87c18a3127 100644 --- a/src/OpenFOAM/interpolations/patchToPatchInterpolation/CalcPatchToPatchWeights.C +++ b/src/OpenFOAM/interpolations/patchToPatchInterpolation/CalcPatchToPatchWeights.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 @@ -80,7 +80,7 @@ void PatchToPatchInterpolation::calcPointAddressing() const const typename FromPatch::FaceType& hitFace = fromPatchFaces[proj[pointI].hitObject()]; - point hitPoint = point::zero; + point hitPoint = Zero; if (proj[pointI].hit()) { diff --git a/src/OpenFOAM/meshes/boundBox/boundBox.C b/src/OpenFOAM/meshes/boundBox/boundBox.C index e75389a6f0..6c3ec8036f 100644 --- a/src/OpenFOAM/meshes/boundBox/boundBox.C +++ b/src/OpenFOAM/meshes/boundBox/boundBox.C @@ -51,8 +51,8 @@ void Foam::boundBox::calculate(const UList& points, const bool doReduce) { if (points.empty()) { - min_ = point::zero; - max_ = point::zero; + min_ = Zero; + max_ = Zero; if (doReduce && Pstream::parRun()) { @@ -87,8 +87,8 @@ void Foam::boundBox::calculate(const UList& points, const bool doReduce) Foam::boundBox::boundBox(const UList& points, const bool doReduce) : - min_(point::zero), - max_(point::zero) + min_(Zero), + max_(Zero) { calculate(points, doReduce); } @@ -96,8 +96,8 @@ Foam::boundBox::boundBox(const UList& points, const bool doReduce) Foam::boundBox::boundBox(const tmp& points, const bool doReduce) : - min_(point::zero), - max_(point::zero) + min_(Zero), + max_(Zero) { calculate(points(), doReduce); points.clear(); @@ -111,8 +111,8 @@ Foam::boundBox::boundBox const bool doReduce ) : - min_(point::zero), - max_(point::zero) + min_(Zero), + max_(Zero) { if (points.empty() || indices.empty()) { diff --git a/src/OpenFOAM/meshes/boundBox/boundBoxI.H b/src/OpenFOAM/meshes/boundBox/boundBoxI.H index 4c3fc06203..13af23e99c 100644 --- a/src/OpenFOAM/meshes/boundBox/boundBoxI.H +++ b/src/OpenFOAM/meshes/boundBox/boundBoxI.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,8 +31,8 @@ License inline Foam::boundBox::boundBox() : - min_(point::zero), - max_(point::zero) + min_(Zero), + max_(Zero) {} diff --git a/src/OpenFOAM/meshes/boundBox/boundBoxTemplates.C b/src/OpenFOAM/meshes/boundBox/boundBoxTemplates.C index 68d62e7569..81aa3f267b 100644 --- a/src/OpenFOAM/meshes/boundBox/boundBoxTemplates.C +++ b/src/OpenFOAM/meshes/boundBox/boundBoxTemplates.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 @@ -38,8 +38,8 @@ Foam::boundBox::boundBox const bool doReduce ) : - min_(point::zero), - max_(point::zero) + min_(Zero), + max_(Zero) { // a FixedList is never empty if (points.empty()) diff --git a/src/OpenFOAM/meshes/meshShapes/cell/cell.C b/src/OpenFOAM/meshes/meshShapes/cell/cell.C index 969b33784b..aa2e026141 100644 --- a/src/OpenFOAM/meshes/meshShapes/cell/cell.C +++ b/src/OpenFOAM/meshes/meshShapes/cell/cell.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 @@ -192,7 +192,7 @@ Foam::point Foam::cell::centre // first calculate the aproximate cell centre as the average of all // face centres - vector cEst = vector::zero; + vector cEst = Zero; scalar sumArea = 0; const labelList& faces = *this; @@ -208,7 +208,7 @@ Foam::point Foam::cell::centre // Calculate the centre by breaking the cell into pyramids and // volume-weighted averaging their centres - vector sumVc = vector::zero; + vector sumVc = Zero; scalar sumV = 0; @@ -251,7 +251,7 @@ Foam::scalar Foam::cell::mag // first calculate the aproximate cell centre as the average of all // face centres - vector cEst = vector::zero; + vector cEst = Zero; scalar nCellFaces = 0; const labelList& faces = *this; diff --git a/src/OpenFOAM/meshes/meshShapes/cellModel/cellModel.C b/src/OpenFOAM/meshes/meshShapes/cellModel/cellModel.C index a8c014b335..a25c393310 100644 --- a/src/OpenFOAM/meshes/meshShapes/cellModel/cellModel.C +++ b/src/OpenFOAM/meshes/meshShapes/cellModel/cellModel.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 @@ -35,7 +35,7 @@ Foam::vector Foam::cellModel::centre ) const { // Estimate centre of cell - vector cEst = vector::zero; + vector cEst = Zero; // Sum the points idicated by the label list forAll(pointLabels, i) @@ -50,7 +50,7 @@ Foam::vector Foam::cellModel::centre // Calculate the centre by breaking the cell into pyramids and // volume-weighted averaging their centres scalar sumV = 0.0; - vector sumVc = vector::zero; + vector sumVc = Zero; const faceList cellFaces = faces(pointLabels); @@ -92,7 +92,7 @@ Foam::scalar Foam::cellModel::mag ) const { // Estimate centre of cell - vector cEst = vector::zero; + vector cEst = Zero; // Sum the points idicated by the label list forAll(pointLabels, i) diff --git a/src/OpenFOAM/meshes/meshShapes/face/face.C b/src/OpenFOAM/meshes/meshShapes/face/face.C index d4bf604b5c..6c65137162 100644 --- a/src/OpenFOAM/meshes/meshShapes/face/face.C +++ b/src/OpenFOAM/meshes/meshShapes/face/face.C @@ -505,7 +505,7 @@ Foam::point Foam::face::centre(const pointField& points) const } - point centrePoint = point::zero; + point centrePoint = Zero; for (label pI=0; pI::zero), - solutionD_(Vector