diff --git a/src/OpenFOAM/containers/Lists/BinSum/BinSum.C b/src/OpenFOAM/containers/Lists/BinSum/BinSum.C index 1e09961326..3850f4b653 100644 --- a/src/OpenFOAM/containers/Lists/BinSum/BinSum.C +++ b/src/OpenFOAM/containers/Lists/BinSum/BinSum.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -35,12 +35,12 @@ Foam::BinSum::BinSum const IndexType delta ) : - List(ceil((max-min)/delta), pTraits::zero), + List(ceil((max-min)/delta), Zero), min_(min), max_(max), delta_(delta), - lowSum_(pTraits::zero), - highSum_(pTraits::zero) + lowSum_(Zero), + highSum_(Zero) {} @@ -55,12 +55,12 @@ Foam::BinSum::BinSum const CombineOp& cop ) : - List(ceil((max-min)/delta), pTraits::zero), + List(ceil((max-min)/delta), Zero), min_(min), max_(max), delta_(delta), - lowSum_(pTraits::zero), - highSum_(pTraits::zero) + lowSum_(Zero), + highSum_(Zero) { forAll(indexVals, i) { diff --git a/src/OpenFOAM/containers/Lists/Distribution/Distribution.C b/src/OpenFOAM/containers/Lists/Distribution/Distribution.C index c5ee3a283c..e6d4524995 100644 --- a/src/OpenFOAM/containers/Lists/Distribution/Distribution.C +++ b/src/OpenFOAM/containers/Lists/Distribution/Distribution.C @@ -196,7 +196,7 @@ Foam::Pair Foam::Distribution::validLimits template Type Foam::Distribution::mean() const { - Type meanValue(pTraits::zero); + Type meanValue(Zero); for (direction cmpt = 0; cmpt < pTraits::nComponents; cmpt++) { @@ -225,7 +225,7 @@ Type Foam::Distribution::mean() const template Type Foam::Distribution::median() const { - Type medianValue(pTraits::zero); + Type medianValue(Zero); List>> normDistribution = normalised(); diff --git a/src/OpenFOAM/dimensionedTypes/dimensionedType/dimensionedType.C b/src/OpenFOAM/dimensionedTypes/dimensionedType/dimensionedType.C index f110dd803d..f5381ef91e 100644 --- a/src/OpenFOAM/dimensionedTypes/dimensionedType/dimensionedType.C +++ b/src/OpenFOAM/dimensionedTypes/dimensionedType/dimensionedType.C @@ -137,7 +137,7 @@ Foam::dimensioned::dimensioned : name_(name), dimensions_(dimSet), - value_(pTraits::zero) + value_(Zero) { initialize(is); } @@ -153,7 +153,7 @@ Foam::dimensioned::dimensioned : name_(name), dimensions_(dimSet), - value_(pTraits::zero) + value_(Zero) { initialize(dict.lookup(name)); } @@ -165,7 +165,7 @@ Foam::dimensioned::dimensioned : name_("undefined"), dimensions_(dimless), - value_(pTraits::zero) + value_(Zero) {} diff --git a/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.C b/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.C index 330336b2af..f30797a793 100644 --- a/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.C +++ b/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.C @@ -468,7 +468,7 @@ Type sum(const FieldField& f) { if (f.size()) { - Type Sum = pTraits::zero; + Type Sum = Zero; forAll(f, i) { @@ -479,7 +479,7 @@ Type sum(const FieldField& f) } else { - return pTraits::zero; + return Zero; } } @@ -524,7 +524,7 @@ Type average(const FieldField& f) WarningInFunction << "empty fieldField, returning zero" << endl; - return pTraits::zero; + return Zero; } Type avrg = sum(f)/n; @@ -536,7 +536,7 @@ Type average(const FieldField& f) WarningInFunction << "empty fieldField, returning zero" << endl; - return pTraits::zero; + return Zero; } } @@ -585,7 +585,7 @@ Type gAverage(const FieldField& f) WarningInFunction << "empty fieldField, returning zero" << endl; - return pTraits::zero; + return Zero; } } diff --git a/src/OpenFOAM/fields/Fields/Field/Field.C b/src/OpenFOAM/fields/Fields/Field/Field.C index 31983797d1..4b628788e8 100644 --- a/src/OpenFOAM/fields/Fields/Field/Field.C +++ b/src/OpenFOAM/fields/Fields/Field/Field.C @@ -406,7 +406,7 @@ void Foam::Field::map const labelList& localAddrs = mapAddressing[i]; const scalarList& localWeights = mapWeights[i]; - f[i] = pTraits::zero; + f[i] = Zero; forAll(localAddrs, j) { @@ -533,7 +533,7 @@ void Foam::Field::rmap { Field& f = *this; - f = pTraits::zero; + f = Zero; forAll(mapF, i) { diff --git a/src/OpenFOAM/fields/Fields/Field/FieldFunctions.C b/src/OpenFOAM/fields/Fields/Field/FieldFunctions.C index c75a045f5d..65d2406470 100644 --- a/src/OpenFOAM/fields/Fields/Field/FieldFunctions.C +++ b/src/OpenFOAM/fields/Fields/Field/FieldFunctions.C @@ -346,13 +346,13 @@ Type sum(const UList& f) { if (f.size()) { - Type Sum = pTraits::zero; + Type Sum = Zero; TFOR_ALL_S_OP_F(Type, Sum, +=, Type, f) return Sum; } else { - return pTraits::zero; + return Zero; } } @@ -379,7 +379,7 @@ Type maxMagSqr(const UList& f) } else { - return pTraits::zero; + return Zero; } } @@ -417,13 +417,13 @@ scalar sumProd(const UList& f1, const UList& f2) { if (f1.size() && (f1.size() == f2.size())) { - scalar SumProd = 0.0; + scalar SumProd = 0; TFOR_ALL_S_OP_F_OP_F(scalar, SumProd, +=, Type, f1, &&, Type, f2) return SumProd; } else { - return 0.0; + return 0; } } @@ -433,7 +433,7 @@ Type sumCmptProd(const UList& f1, const UList& f2) { if (f1.size() && (f1.size() == f2.size())) { - Type SumProd = pTraits::zero; + Type SumProd = Zero; TFOR_ALL_S_OP_FUNC_F_F ( Type, @@ -449,7 +449,7 @@ Type sumCmptProd(const UList& f1, const UList& f2) } else { - return pTraits::zero; + return Zero; } } @@ -459,13 +459,13 @@ scalar sumSqr(const UList& f) { if (f.size()) { - scalar SumSqr = 0.0; + scalar SumSqr = 0; TFOR_ALL_S_OP_FUNC_F(scalar, SumSqr, +=, sqr, Type, f) return SumSqr; } else { - return 0.0; + return 0; } } @@ -476,13 +476,13 @@ scalar sumMag(const UList& f) { if (f.size()) { - scalar SumMag = 0.0; + scalar SumMag = 0; TFOR_ALL_S_OP_FUNC_F(scalar, SumMag, +=, mag, Type, f) return SumMag; } else { - return 0.0; + return 0; } } @@ -494,13 +494,13 @@ Type sumCmptMag(const UList& f) { if (f.size()) { - Type SumMag = pTraits::zero; + Type SumMag = Zero; TFOR_ALL_S_OP_FUNC_F(scalar, SumMag, +=, cmptMag, Type, f) return SumMag; } else { - return pTraits::zero; + return Zero; } } @@ -520,7 +520,7 @@ Type average(const UList& f) WarningInFunction << "empty field, returning zero" << endl; - return pTraits::zero; + return Zero; } } @@ -597,7 +597,7 @@ Type gAverage WarningInFunction << "empty field, returning zero." << endl; - return pTraits::zero; + return Zero; } } diff --git a/src/OpenFOAM/fields/UniformDimensionedFields/UniformDimensionedField.C b/src/OpenFOAM/fields/UniformDimensionedFields/UniformDimensionedField.C index 1fd8eac973..cc7c6be0ea 100644 --- a/src/OpenFOAM/fields/UniformDimensionedFields/UniformDimensionedField.C +++ b/src/OpenFOAM/fields/UniformDimensionedFields/UniformDimensionedField.C @@ -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 @@ -74,7 +74,7 @@ Foam::UniformDimensionedField::UniformDimensionedField ) : regIOobject(io), - dimensioned(regIOobject::name(), dimless, pTraits::zero) + dimensioned(regIOobject::name(), dimless, Zero) { dictionary dict(readStream(typeName)); scalar multiplier; diff --git a/src/OpenFOAM/fields/pointPatchFields/basic/value/valuePointPatchField.C b/src/OpenFOAM/fields/pointPatchFields/basic/value/valuePointPatchField.C index c22c91f79d..e7c7dacb85 100644 --- a/src/OpenFOAM/fields/pointPatchFields/basic/value/valuePointPatchField.C +++ b/src/OpenFOAM/fields/pointPatchFields/basic/value/valuePointPatchField.C @@ -77,7 +77,7 @@ Foam::valuePointPatchField::valuePointPatchField } else if (!valueRequired) { - Field::operator=(pTraits::zero); + Field::operator=(Zero); } else { diff --git a/src/OpenFOAM/interpolations/interpolatePointToCell/interpolatePointToCell.C b/src/OpenFOAM/interpolations/interpolatePointToCell/interpolatePointToCell.C index c0e7192d15..c5d2cc4257 100644 --- a/src/OpenFOAM/interpolations/interpolatePointToCell/interpolatePointToCell.C +++ b/src/OpenFOAM/interpolations/interpolatePointToCell/interpolatePointToCell.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 @@ -40,7 +40,7 @@ Type Foam::interpolatePointToCell labelHashSet pointHad(10*cFaces.size()); - Type sum(pTraits::zero); + Type sum = Zero; forAll(cFaces, i) { diff --git a/src/OpenFOAM/interpolations/interpolation2DTable/interpolation2DTable.C b/src/OpenFOAM/interpolations/interpolation2DTable/interpolation2DTable.C index d12ce331da..fe2e5bd514 100644 --- a/src/OpenFOAM/interpolations/interpolation2DTable/interpolation2DTable.C +++ b/src/OpenFOAM/interpolations/interpolation2DTable/interpolation2DTable.C @@ -308,7 +308,7 @@ Type Foam::interpolation2DTable::operator() WarningInFunction << "cannot interpolate a zero-sized table - returning zero" << endl; - return pTraits::zero; + return Zero; } else if (nX == 1) { diff --git a/src/OpenFOAM/interpolations/interpolationWeights/interpolationWeights/interpolationWeightsTemplates.C b/src/OpenFOAM/interpolations/interpolationWeights/interpolationWeights/interpolationWeightsTemplates.C index 9050921b9e..1f2038cb91 100644 --- a/src/OpenFOAM/interpolations/interpolationWeights/interpolationWeights/interpolationWeightsTemplates.C +++ b/src/OpenFOAM/interpolations/interpolationWeights/interpolationWeights/interpolationWeightsTemplates.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -65,7 +65,7 @@ Foam::interpolationWeights::weightedSum } else { - return pTraits::zero; + return Zero; } } diff --git a/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolate.C b/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolate.C index b44cd52352..621e9a7574 100644 --- a/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolate.C +++ b/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolate.C @@ -51,11 +51,7 @@ PatchToPatchInterpolation::pointInterpolate tmp> tresult ( - new Field - ( - toPatch_.nPoints(), - pTraits::zero - ) + new Field(toPatch_.nPoints(), Zero) ); Field& result = tresult(); @@ -119,11 +115,7 @@ PatchToPatchInterpolation::faceInterpolate tmp> tresult ( - new Field - ( - toPatch_.size(), - pTraits::zero - ) + new Field(toPatch_.size(), Zero) ); Field& result = tresult(); diff --git a/src/OpenFOAM/interpolations/primitivePatchInterpolation/PrimitivePatchInterpolation.C b/src/OpenFOAM/interpolations/primitivePatchInterpolation/PrimitivePatchInterpolation.C index e9253134ef..30c5ec1e70 100644 --- a/src/OpenFOAM/interpolations/primitivePatchInterpolation/PrimitivePatchInterpolation.C +++ b/src/OpenFOAM/interpolations/primitivePatchInterpolation/PrimitivePatchInterpolation.C @@ -188,7 +188,7 @@ tmp> PrimitivePatchInterpolation::faceToPointInterpolate ( new Field ( - patch_.nPoints(), pTraits::zero + patch_.nPoints(), Zero ) ); @@ -245,7 +245,7 @@ tmp> PrimitivePatchInterpolation::pointToFaceInterpolate new Field ( patch_.size(), - pTraits::zero + Zero ) ); @@ -300,7 +300,7 @@ tmp> PrimitivePatchInterpolation::faceToEdgeInterpolate tmp> tresult ( - new Field(patch_.nEdges(), pTraits::zero) + new Field(patch_.nEdges(), Zero) ); Field& result = tresult.ref(); diff --git a/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrix.C b/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrix.C index dc68209202..5c811d20c3 100644 --- a/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrix.C +++ b/src/OpenFOAM/matrices/LUscalarMatrix/LUscalarMatrix.C @@ -129,7 +129,7 @@ Foam::LUscalarMatrix::LUscalarMatrix nCells += lduMatrices[i].size(); } - scalarSquareMatrix m(nCells, nCells, 0.0); + scalarSquareMatrix m(nCells, 0.0); transfer(m); convert(lduMatrices); } @@ -137,7 +137,7 @@ Foam::LUscalarMatrix::LUscalarMatrix else { label nCells = ldum.lduAddr().size(); - scalarSquareMatrix m(nCells, nCells, 0.0); + scalarSquareMatrix m(nCells, 0.0); transfer(m); convert(ldum, interfaceCoeffs, interfaces); } diff --git a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrix.C b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrix.C index aa50c4def3..a36b31137b 100644 --- a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrix.C +++ b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrix.C @@ -191,7 +191,7 @@ Foam::Field& Foam::LduMatrix::diag() { if (!diagPtr_) { - diagPtr_ = new Field(lduAddr().size(), pTraits::zero); + diagPtr_ = new Field(lduAddr().size(), Zero); } return *diagPtr_; @@ -212,7 +212,7 @@ Foam::Field& Foam::LduMatrix::upper() upperPtr_ = new Field ( lduAddr().lowerAddr().size(), - pTraits::zero + Zero ); } } @@ -235,7 +235,7 @@ Foam::Field& Foam::LduMatrix::lower() lowerPtr_ = new Field ( lduAddr().lowerAddr().size(), - pTraits::zero + Zero ); } } @@ -249,7 +249,7 @@ Foam::Field& Foam::LduMatrix::source() { if (!sourcePtr_) { - sourcePtr_ = new Field(lduAddr().size(), pTraits::zero); + sourcePtr_ = new Field(lduAddr().size(), Zero); } return *sourcePtr_; diff --git a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixOperations.C b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixOperations.C index 1c43bebcaf..8715b36752 100644 --- a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixOperations.C +++ b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixOperations.C @@ -89,7 +89,7 @@ Foam::LduMatrix::H(const Field& psi) const { tmp> tHpsi ( - new Field(lduAddr().size(), pTraits::zero) + new Field(lduAddr().size(), Zero) ); if (lowerPtr_ || upperPtr_) diff --git a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixSolver.C b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixSolver.C index 8aed474b36..157db46d7b 100644 --- a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixSolver.C +++ b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixSolver.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 @@ -131,7 +131,7 @@ Foam::LduMatrix::solver::solver maxIter_(1000), minIter_(0), tolerance_(1e-6*pTraits::one), - relTol_(pTraits::zero) + relTol_(Zero) { readControls(); } diff --git a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/SolverPerformance.H b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/SolverPerformance.H index a933e1aeca..1c639c4439 100644 --- a/src/OpenFOAM/matrices/LduMatrix/LduMatrix/SolverPerformance.H +++ b/src/OpenFOAM/matrices/LduMatrix/LduMatrix/SolverPerformance.H @@ -110,8 +110,8 @@ public: SolverPerformance() : - initialResidual_(pTraits::zero), - finalResidual_(pTraits::zero), + initialResidual_(Zero), + finalResidual_(Zero), noIterations_(0), converged_(false), singular_(false) diff --git a/src/OpenFOAM/matrices/LduMatrix/Solvers/DiagonalSolver/DiagonalSolver.C b/src/OpenFOAM/matrices/LduMatrix/Solvers/DiagonalSolver/DiagonalSolver.C index adbe9113a2..4c1cf19a26 100644 --- a/src/OpenFOAM/matrices/LduMatrix/Solvers/DiagonalSolver/DiagonalSolver.C +++ b/src/OpenFOAM/matrices/LduMatrix/Solvers/DiagonalSolver/DiagonalSolver.C @@ -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 @@ -67,8 +67,8 @@ Foam::DiagonalSolver::solve ( typeName, this->fieldName_, - pTraits::zero, - pTraits::zero, + Zero, + Zero, 0, true, false diff --git a/src/OpenFOAM/matrices/LduMatrix/Solvers/PBiCCCG/PBiCCCG.C b/src/OpenFOAM/matrices/LduMatrix/Solvers/PBiCCCG/PBiCCCG.C index b770bdf21f..11f7d52aa7 100644 --- a/src/OpenFOAM/matrices/LduMatrix/Solvers/PBiCCCG/PBiCCCG.C +++ b/src/OpenFOAM/matrices/LduMatrix/Solvers/PBiCCCG/PBiCCCG.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 @@ -69,7 +69,7 @@ Foam::PBiCCCG::solve Field pA(nCells); Type* __restrict__ pAPtr = pA.begin(); - Field pT(nCells, pTraits::zero); + Field pT(nCells, Zero); Type* __restrict__ pTPtr = pT.begin(); Field wA(nCells); diff --git a/src/OpenFOAM/matrices/LduMatrix/Solvers/PBiCICG/PBiCICG.C b/src/OpenFOAM/matrices/LduMatrix/Solvers/PBiCICG/PBiCICG.C index 3043a01673..860765e4c1 100644 --- a/src/OpenFOAM/matrices/LduMatrix/Solvers/PBiCICG/PBiCICG.C +++ b/src/OpenFOAM/matrices/LduMatrix/Solvers/PBiCICG/PBiCICG.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,7 +66,7 @@ Foam::PBiCICG::solve(Field& psi) const Field pA(nCells); Type* __restrict__ pAPtr = pA.begin(); - Field pT(nCells, pTraits::zero); + Field pT(nCells, Zero); Type* __restrict__ pTPtr = pT.begin(); Field wA(nCells); diff --git a/src/OpenFOAM/matrices/LduMatrix/Solvers/SmoothSolver/SmoothSolver.C b/src/OpenFOAM/matrices/LduMatrix/Solvers/SmoothSolver/SmoothSolver.C index 5dea9207d6..76d3b4369e 100644 --- a/src/OpenFOAM/matrices/LduMatrix/Solvers/SmoothSolver/SmoothSolver.C +++ b/src/OpenFOAM/matrices/LduMatrix/Solvers/SmoothSolver/SmoothSolver.C @@ -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 @@ -85,7 +85,7 @@ Foam::SmoothSolver::solve(Field& psi) const } else { - Type normFactor = pTraits::zero; + Type normFactor = Zero; { Field Apsi(psi.size()); diff --git a/src/OpenFOAM/meshes/meshShapes/face/faceTemplates.C b/src/OpenFOAM/meshes/meshShapes/face/faceTemplates.C index dcfda1d699..33d1f97b78 100644 --- a/src/OpenFOAM/meshes/meshShapes/face/faceTemplates.C +++ b/src/OpenFOAM/meshes/meshShapes/face/faceTemplates.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 @@ -71,7 +71,7 @@ Type Foam::face::average label nPoints = size(); point centrePoint = point::zero; - Type cf = pTraits::zero; + Type cf = Zero; for (label pI=0; pI::zero; + Type sumAf = Zero; for (label pI=0; pI::demandDrivenEntry : dict_(dict), keyword_(keyword), - value_(pTraits::zero), + value_(Zero), stored_(false) {} diff --git a/src/OpenFOAM/primitives/functions/Function1/Constant/Constant.C b/src/OpenFOAM/primitives/functions/Function1/Constant/Constant.C index 8b757e59bc..d1b5f32885 100644 --- a/src/OpenFOAM/primitives/functions/Function1/Constant/Constant.C +++ b/src/OpenFOAM/primitives/functions/Function1/Constant/Constant.C @@ -35,7 +35,7 @@ Foam::Function1Types::Constant::Constant ) : Function1(entryName), - value_(pTraits::zero) + value_(Zero) { Istream& is(dict.lookup(entryName)); word entryType(is); diff --git a/src/OpenFOAM/primitives/functions/Function1/Function1/Function1.C b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1.C index 3654a7563e..bccc14d7f5 100644 --- a/src/OpenFOAM/primitives/functions/Function1/Function1/Function1.C +++ b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1.C @@ -69,7 +69,7 @@ Type Foam::Function1::value(const scalar x) const { NotImplemented; - return pTraits::zero; + return Zero; } @@ -78,7 +78,7 @@ Type Foam::Function1::integrate(const scalar x1, const scalar x2) const { NotImplemented; - return pTraits::zero; + return Zero; } diff --git a/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.C b/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.C index 4859b50949..005e743e61 100644 --- a/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.C +++ b/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.C @@ -146,7 +146,7 @@ void Foam::Function1Types::Polynomial::convertTimeBase(const Time& t) template Type Foam::Function1Types::Polynomial::value(const scalar x) const { - Type y(pTraits::zero); + Type y(Zero); forAll(coeffs_, i) { y += cmptMultiply @@ -167,7 +167,7 @@ Type Foam::Function1Types::Polynomial::integrate const scalar x2 ) const { - Type intx(pTraits::zero); + Type intx(Zero); if (canIntegrate_) { diff --git a/src/OpenFOAM/primitives/functions/Function1/Table/TableBase.C b/src/OpenFOAM/primitives/functions/Function1/Table/TableBase.C index 8217c6ca18..a4f83a039c 100644 --- a/src/OpenFOAM/primitives/functions/Function1/Table/TableBase.C +++ b/src/OpenFOAM/primitives/functions/Function1/Table/TableBase.C @@ -394,7 +394,7 @@ Foam::tmp Foam::Function1Types::TableBase::x() const template Foam::tmp> Foam::Function1Types::TableBase::y() const { - tmp> tfld(new Field(table_.size(), pTraits::zero)); + tmp> tfld(new Field(table_.size(), Zero)); Field& fld = tfld.ref(); forAll(table_, i)