diff --git a/src/OpenFOAM/primitives/MatrixSpace/MatrixSpaceI.H b/src/OpenFOAM/primitives/MatrixSpace/MatrixSpaceI.H index 3fca897851..e7ae70ec6b 100644 --- a/src/OpenFOAM/primitives/MatrixSpace/MatrixSpaceI.H +++ b/src/OpenFOAM/primitives/MatrixSpace/MatrixSpaceI.H @@ -35,10 +35,10 @@ inline Foam::MatrixSpace::MatrixSpace() template inline Foam::MatrixSpace::MatrixSpace ( - const Foam::zero z + const Foam::zero ) : - MatrixSpace::vsType(z) + MatrixSpace::vsType(Zero) {} @@ -257,7 +257,7 @@ inline Foam::MatrixSpace Foam::MatrixSpace::identity() { StaticAssert(Nrows == Ncols); - msType result((Foam::zero())); + msType result(Zero); for (direction i=0; i::operator() ) const { #ifdef FULLDEBUG - if (i < 0 || i > Nrows-1 || j < 0 || j > Ncols-1) + if (i > Nrows-1 || j > Ncols-1) { FatalErrorInFunction << "indices out of range" @@ -347,7 +347,7 @@ inline Cmpt& Foam::MatrixSpace::operator() ) { #ifdef FULLDEBUG - if (i < 0 || i > Nrows-1 || j < 0 || j > Ncols-1) + if (i > Nrows-1 || j > Ncols-1) { FatalErrorInFunction << "indices out of range" @@ -417,10 +417,10 @@ operator()(const direction i, const direction j) template inline void Foam::MatrixSpace::operator= ( - const Foam::zero z + const Foam::zero ) { - MatrixSpace::vsType::operator=(z); + MatrixSpace::vsType::operator=(Zero); } @@ -552,10 +552,7 @@ inline typename typeOfInnerProduct::type operator& { StaticAssert(Ncols1 == Nrows2); - typename typeOfInnerProduct::type result - ( - (Foam::zero()) - ); + typename typeOfInnerProduct::type result(Zero); for (direction i=0; i::type operator& const VectorSpace& v ) { - typename typeOfInnerProduct::type result - ( - (Foam::zero()) - ); + typename typeOfInnerProduct::type result(Zero); for (direction i=0; i::RowVector() template -inline Foam::RowVector::RowVector(const Foam::zero z) +inline Foam::RowVector::RowVector(const Foam::zero) : - RowVector::msType(z) + RowVector::msType(Zero) {} @@ -44,7 +44,7 @@ inline Foam::RowVector::RowVector const MatrixSpace, Cmpt2, 1, 3>& ms ) : - MatrixSpace, Cmpt, 1, 3>(ms) + RowVector::msType(ms) {} @@ -65,7 +65,7 @@ inline Foam::RowVector::RowVector template inline Foam::RowVector::RowVector(Istream& is) : - MatrixSpace, Cmpt, 1, 3>(is) + RowVector::msType(is) {} @@ -112,9 +112,9 @@ inline Cmpt& Foam::RowVector::z() // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // template -inline void Foam::RowVector::operator=(const Foam::zero z) +inline void Foam::RowVector::operator=(const Foam::zero) { - RowVector::msType::operator=(z); + RowVector::msType::operator=(Zero); } diff --git a/src/OpenFOAM/primitives/SphericalTensor/SphericalTensor.H b/src/OpenFOAM/primitives/SphericalTensor/SphericalTensor.H index 2fa7b9b4ed..656731ccf0 100644 --- a/src/OpenFOAM/primitives/SphericalTensor/SphericalTensor.H +++ b/src/OpenFOAM/primitives/SphericalTensor/SphericalTensor.H @@ -82,6 +82,9 @@ public: //- Construct null inline SphericalTensor(); + //- Construct initialized to zero + inline explicit SphericalTensor(const Foam::zero); + //- Construct given VectorSpace template inline SphericalTensor @@ -106,6 +109,12 @@ public: //- Transpose inline const SphericalTensor& T() const; + + + // Member Operators + + //- Assignment to zero + inline void operator=(const Foam::zero); }; diff --git a/src/OpenFOAM/primitives/SphericalTensor/SphericalTensorI.H b/src/OpenFOAM/primitives/SphericalTensor/SphericalTensorI.H index 409b3961b2..cb4d7fda30 100644 --- a/src/OpenFOAM/primitives/SphericalTensor/SphericalTensorI.H +++ b/src/OpenFOAM/primitives/SphericalTensor/SphericalTensorI.H @@ -32,6 +32,13 @@ inline Foam::SphericalTensor::SphericalTensor() {} +template +inline Foam::SphericalTensor::SphericalTensor(const Foam::zero) +: + SphericalTensor::vsType(Zero) +{} + + template template inline Foam::SphericalTensor::SphericalTensor @@ -39,7 +46,7 @@ inline Foam::SphericalTensor::SphericalTensor const VectorSpace, Cmpt2, 1>& vs ) : - VectorSpace, Cmpt, 1>(vs) + SphericalTensor::vsType(vs) {} @@ -53,7 +60,7 @@ inline Foam::SphericalTensor::SphericalTensor(const Cmpt& stii) template inline Foam::SphericalTensor::SphericalTensor(Istream& is) : - VectorSpace, Cmpt, 1>(is) + SphericalTensor::vsType(is) {} @@ -81,6 +88,15 @@ Foam::SphericalTensor::T() const } +// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // + +template +inline void Foam::SphericalTensor::operator=(const Foam::zero) +{ + SphericalTensor::vsType::operator=(Zero); +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam diff --git a/src/OpenFOAM/primitives/SphericalTensor2D/SphericalTensor2D.H b/src/OpenFOAM/primitives/SphericalTensor2D/SphericalTensor2D.H index ecebdf2625..9791a66829 100644 --- a/src/OpenFOAM/primitives/SphericalTensor2D/SphericalTensor2D.H +++ b/src/OpenFOAM/primitives/SphericalTensor2D/SphericalTensor2D.H @@ -78,6 +78,9 @@ public: //- Construct null inline SphericalTensor2D(); + //- Construct initialized to zero + inline explicit SphericalTensor2D(const Foam::zero); + //- Construct given VectorSpace inline SphericalTensor2D ( @@ -97,6 +100,12 @@ public: inline const Cmpt& ii() const; inline Cmpt& ii(); + + + // Member Operators + + //- Assignment to zero + inline void operator=(const Foam::zero); }; diff --git a/src/OpenFOAM/primitives/SphericalTensor2D/SphericalTensor2DI.H b/src/OpenFOAM/primitives/SphericalTensor2D/SphericalTensor2DI.H index 9a8b6daff7..2147a736d2 100644 --- a/src/OpenFOAM/primitives/SphericalTensor2D/SphericalTensor2DI.H +++ b/src/OpenFOAM/primitives/SphericalTensor2D/SphericalTensor2DI.H @@ -32,13 +32,20 @@ inline Foam::SphericalTensor2D::SphericalTensor2D() {} +template +inline Foam::SphericalTensor2D::SphericalTensor2D(const Foam::zero) +: + SphericalTensor2D::vsType(Zero) +{} + + template inline Foam::SphericalTensor2D::SphericalTensor2D ( const VectorSpace, Cmpt, 1>& vs ) : - VectorSpace, Cmpt, 1>(vs) + SphericalTensor2D::vsType(vs) {} @@ -52,7 +59,7 @@ inline Foam::SphericalTensor2D::SphericalTensor2D(const Cmpt& stii) template inline Foam::SphericalTensor2D::SphericalTensor2D(Istream& is) : - VectorSpace, Cmpt, 1>(is) + SphericalTensor2D::vsType(is) {} @@ -72,6 +79,15 @@ inline Cmpt& Foam::SphericalTensor2D::ii() } +// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // + +template +inline void Foam::SphericalTensor2D::operator=(const Foam::zero) +{ + SphericalTensor2D::vsType::operator=(Zero); +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam diff --git a/src/OpenFOAM/primitives/SymmTensor/SymmTensor.H b/src/OpenFOAM/primitives/SymmTensor/SymmTensor.H index 58eca1da22..aa5758f2d2 100644 --- a/src/OpenFOAM/primitives/SymmTensor/SymmTensor.H +++ b/src/OpenFOAM/primitives/SymmTensor/SymmTensor.H @@ -82,6 +82,9 @@ public: //- Construct null inline SymmTensor(); + //- Construct initialized to zero + inline explicit SymmTensor(const Foam::zero); + //- Construct given VectorSpace of the same rank template inline SymmTensor(const VectorSpace, Cmpt2, 6>&); @@ -125,6 +128,9 @@ public: // Member Operators + //- Assignment to zero + inline void operator=(const Foam::zero); + //- Construct given SphericalTensor inline void operator=(const SphericalTensor&); }; diff --git a/src/OpenFOAM/primitives/SymmTensor/SymmTensorI.H b/src/OpenFOAM/primitives/SymmTensor/SymmTensorI.H index 6caa6aec26..9b97a9dedc 100644 --- a/src/OpenFOAM/primitives/SymmTensor/SymmTensorI.H +++ b/src/OpenFOAM/primitives/SymmTensor/SymmTensorI.H @@ -33,6 +33,13 @@ inline Foam::SymmTensor::SymmTensor() {} +template +inline Foam::SymmTensor::SymmTensor(const Foam::zero) +: + SymmTensor::vsType(Zero) +{} + + template template inline Foam::SymmTensor::SymmTensor @@ -40,7 +47,7 @@ inline Foam::SymmTensor::SymmTensor const VectorSpace, Cmpt2, 6>& vs ) : - VectorSpace, Cmpt, 6>(vs) + SymmTensor::vsType(vs) {} @@ -70,7 +77,7 @@ inline Foam::SymmTensor::SymmTensor template inline Foam::SymmTensor::SymmTensor(Istream& is) : - VectorSpace, Cmpt, 6>(is) + SymmTensor::vsType(is) {} @@ -157,7 +164,7 @@ inline const Foam::SymmTensor& Foam::SymmTensor::T() const } -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // +// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // template inline void Foam::SymmTensor::operator=(const SphericalTensor& st) @@ -168,6 +175,13 @@ inline void Foam::SymmTensor::operator=(const SphericalTensor& st) } +template +inline void Foam::SymmTensor::operator=(const Foam::zero) +{ + SymmTensor::vsType::operator=(Zero); +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam diff --git a/src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2D.H b/src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2D.H index 55a455ddc3..ac5811fc75 100644 --- a/src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2D.H +++ b/src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2D.H @@ -82,6 +82,9 @@ public: //- Construct null inline SymmTensor2D(); + //- Construct initialized to zero + inline explicit SymmTensor2D(const Foam::zero); + //- Construct given VectorSpace inline SymmTensor2D(const VectorSpace, Cmpt, 3>&); @@ -117,6 +120,9 @@ public: // Member Operators + //- Assignment to zero + inline void operator=(const Foam::zero); + //- Construct given SphericalTensor2D inline void operator=(const SphericalTensor2D&); }; diff --git a/src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2DI.H b/src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2DI.H index 674a6a6975..d69b566a46 100644 --- a/src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2DI.H +++ b/src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2DI.H @@ -33,13 +33,20 @@ inline Foam::SymmTensor2D::SymmTensor2D() {} +template +inline Foam::SymmTensor2D::SymmTensor2D(const Foam::zero) +: + SymmTensor2D::vsType(Zero) +{} + + template inline Foam::SymmTensor2D::SymmTensor2D ( const VectorSpace, Cmpt, 3>& vs ) : - VectorSpace, Cmpt, 3>(vs) + SymmTensor2D::vsType(vs) {} @@ -66,7 +73,7 @@ inline Foam::SymmTensor2D::SymmTensor2D template inline Foam::SymmTensor2D::SymmTensor2D(Istream& is) : - VectorSpace, Cmpt, 3>(is) + SymmTensor2D::vsType(is) {} @@ -117,7 +124,7 @@ inline const Foam::SymmTensor2D& Foam::SymmTensor2D::T() const } -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // +// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // template inline void Foam::SymmTensor2D::operator= @@ -130,6 +137,13 @@ inline void Foam::SymmTensor2D::operator= } +template +inline void Foam::SymmTensor2D::operator=(const Foam::zero) +{ + SymmTensor2D::vsType::operator=(Zero); +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam diff --git a/src/OpenFOAM/primitives/Tensor/Tensor.H b/src/OpenFOAM/primitives/Tensor/Tensor.H index ce5d305be7..044e62537b 100644 --- a/src/OpenFOAM/primitives/Tensor/Tensor.H +++ b/src/OpenFOAM/primitives/Tensor/Tensor.H @@ -197,6 +197,9 @@ public: //- Assign to a triad inline void operator=(const Vector>&); + + //- Assignment to zero + inline void operator=(const Foam::zero); }; diff --git a/src/OpenFOAM/primitives/Tensor/TensorI.H b/src/OpenFOAM/primitives/Tensor/TensorI.H index 5673703285..116dc7d352 100644 --- a/src/OpenFOAM/primitives/Tensor/TensorI.H +++ b/src/OpenFOAM/primitives/Tensor/TensorI.H @@ -33,9 +33,9 @@ inline Foam::Tensor::Tensor() template -inline Foam::Tensor::Tensor(const Foam::zero z) +inline Foam::Tensor::Tensor(const Foam::zero) : - Tensor::msType(z) + Tensor::msType(Zero) {} @@ -329,7 +329,7 @@ inline Foam::Tensor Foam::Tensor::T() const } -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // +// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // template inline void Foam::Tensor::operator&=(const Tensor& t) @@ -400,6 +400,13 @@ inline void Foam::Tensor::operator=(const Vector>& tr) } +template +inline void Foam::Tensor::operator=(const Foam::zero) +{ + Tensor::msType::operator=(Zero); +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam diff --git a/src/OpenFOAM/primitives/Tensor2D/Tensor2D.H b/src/OpenFOAM/primitives/Tensor2D/Tensor2D.H index 098f52ef9d..d2e82ca134 100644 --- a/src/OpenFOAM/primitives/Tensor2D/Tensor2D.H +++ b/src/OpenFOAM/primitives/Tensor2D/Tensor2D.H @@ -85,6 +85,9 @@ public: //- Construct null inline Tensor2D(); + //- Construct initialized to zero + inline explicit Tensor2D(const Foam::zero); + //- Construct given VectorSpace inline Tensor2D(const VectorSpace, Cmpt, 4>&); @@ -142,6 +145,9 @@ public: //- Copy SphericalTensor2D inline void operator=(const SphericalTensor2D&); + + //- Assignment to zero + inline void operator=(const Foam::zero); }; diff --git a/src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H b/src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H index bc68f00ad3..f965993811 100644 --- a/src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H +++ b/src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H @@ -30,13 +30,20 @@ inline Foam::Tensor2D::Tensor2D() {} +template +inline Foam::Tensor2D::Tensor2D(const Foam::zero) +: + Tensor2D::msType(Zero) +{} + + template inline Foam::Tensor2D::Tensor2D ( const VectorSpace, Cmpt, 4>& vs ) : - VectorSpace, Cmpt, 4>(vs) + Tensor2D::msType(vs) {} @@ -83,7 +90,7 @@ inline Foam::Tensor2D::Tensor2D template inline Foam::Tensor2D::Tensor2D(Istream& is) : - VectorSpace, Cmpt, 4>(is) + Tensor2D::msType(is) {} @@ -181,6 +188,15 @@ inline void Foam::Tensor2D::operator=(const SphericalTensor2D& st) } +// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // + +template +inline void Foam::Tensor2D::operator=(const Foam::zero) +{ + Tensor2D::msType::operator=(Zero); +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam diff --git a/src/OpenFOAM/primitives/Vector/VectorI.H b/src/OpenFOAM/primitives/Vector/VectorI.H index e6d72fa6b2..591155fa42 100644 --- a/src/OpenFOAM/primitives/Vector/VectorI.H +++ b/src/OpenFOAM/primitives/Vector/VectorI.H @@ -31,9 +31,9 @@ inline Foam::Vector::Vector() template -inline Foam::Vector::Vector(const Foam::zero z) +inline Foam::Vector::Vector(const Foam::zero) : - Vector::vsType(z) + Vector::vsType(Zero) {} @@ -44,7 +44,7 @@ inline Foam::Vector::Vector const VectorSpace, Cmpt2, 3>& vs ) : - VectorSpace, Cmpt, 3>(vs) + Vector::vsType(vs) {} @@ -65,7 +65,7 @@ inline Foam::Vector::Vector template inline Foam::Vector::Vector(Istream& is) : - VectorSpace, Cmpt, 3>(is) + Vector::vsType(is) {} @@ -124,9 +124,9 @@ inline const Foam::Vector& Foam::Vector::centre // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // template -inline void Foam::Vector::operator=(const Foam::zero z) +inline void Foam::Vector::operator=(const Foam::zero) { - VectorSpace, Cmpt, 3>::operator=(z); + Vector::vsType::operator=(Zero); } diff --git a/src/OpenFOAM/primitives/Vector2D/Vector2D.H b/src/OpenFOAM/primitives/Vector2D/Vector2D.H index d1c7852b8f..c64afadab6 100644 --- a/src/OpenFOAM/primitives/Vector2D/Vector2D.H +++ b/src/OpenFOAM/primitives/Vector2D/Vector2D.H @@ -75,6 +75,9 @@ public: //- Construct null inline Vector2D(); + //- Construct initialized to zero + inline explicit Vector2D(const Foam::zero); + //- Construct given VectorSpace inline Vector2D(const VectorSpace, Cmpt, 2>&); @@ -100,6 +103,12 @@ public: //- Perp dot product (dot product with perpendicular vector) inline scalar perp(const Vector2D& b) const; + + + // Member Operators + + //- Assignment to zero + inline void operator=(const Foam::zero); }; diff --git a/src/OpenFOAM/primitives/Vector2D/Vector2DI.H b/src/OpenFOAM/primitives/Vector2D/Vector2DI.H index 8ccf067c26..36b70942b4 100644 --- a/src/OpenFOAM/primitives/Vector2D/Vector2DI.H +++ b/src/OpenFOAM/primitives/Vector2D/Vector2DI.H @@ -30,13 +30,20 @@ inline Foam::Vector2D::Vector2D() {} +template +inline Foam::Vector2D::Vector2D(const Foam::zero) +: + Vector2D::vsType(Zero) +{} + + template inline Foam::Vector2D::Vector2D ( const VectorSpace, Cmpt, 2>& vs ) : - VectorSpace, Cmpt, 2>(vs) + Vector2D::vsType(vs) {} @@ -51,7 +58,7 @@ inline Foam::Vector2D::Vector2D(const Cmpt& vx, const Cmpt& vy) template inline Foam::Vector2D::Vector2D(Istream& is) : - VectorSpace, Cmpt, 2>(is) + Vector2D::vsType(is) {} @@ -83,6 +90,15 @@ inline Cmpt& Foam::Vector2D::y() } +// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // + +template +inline void Foam::Vector2D::operator=(const Foam::zero) +{ + Vector2D::vsType::operator=(Zero); +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam diff --git a/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H b/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H index 10f6964e7b..3b545a43e6 100644 --- a/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H +++ b/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H @@ -42,9 +42,9 @@ inline VectorSpace::VectorSpace() template -inline VectorSpace::VectorSpace(const Foam::zero z) +inline VectorSpace::VectorSpace(const Foam::zero) { - VectorSpaceOps::eqOpS(*this, 0, eqOp()); + VectorSpaceOps::eqOpS(*this, Zero, eqOp()); } diff --git a/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensor/CompactSpatialTensorI.H b/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensor/CompactSpatialTensorI.H index c01ed49c7f..5b45979de9 100644 --- a/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensor/CompactSpatialTensorI.H +++ b/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensor/CompactSpatialTensorI.H @@ -33,10 +33,10 @@ inline Foam::CompactSpatialTensor::CompactSpatialTensor() template inline Foam::CompactSpatialTensor::CompactSpatialTensor ( - const Foam::zero z + const Foam::zero ) : - CompactSpatialTensor::msType(z) + CompactSpatialTensor::msType(Zero) {} @@ -97,9 +97,9 @@ inline Foam::CompactSpatialTensor::CompactSpatialTensor(Istream& is) // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template -inline void Foam::CompactSpatialTensor::operator=(const Foam::zero z) +inline void Foam::CompactSpatialTensor::operator=(const Foam::zero) { - CompactSpatialTensor::msType::operator=(z); + CompactSpatialTensor::msType::operator=(Zero); } diff --git a/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensorT/CompactSpatialTensorTI.H b/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensorT/CompactSpatialTensorTI.H index d76f077fde..51a1a8bae8 100644 --- a/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensorT/CompactSpatialTensorTI.H +++ b/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensorT/CompactSpatialTensorTI.H @@ -33,10 +33,10 @@ inline Foam::CompactSpatialTensorT::CompactSpatialTensorT() template inline Foam::CompactSpatialTensorT::CompactSpatialTensorT ( - const Foam::zero z + const Foam::zero ) : - CompactSpatialTensorT::msType(z) + CompactSpatialTensorT::msType(Zero) {} @@ -97,9 +97,9 @@ inline Foam::CompactSpatialTensorT::CompactSpatialTensorT(Istream& is) // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template -inline void Foam::CompactSpatialTensorT::operator=(const Foam::zero z) +inline void Foam::CompactSpatialTensorT::operator=(const Foam::zero) { - CompactSpatialTensorT::msType::operator=(z); + CompactSpatialTensorT::msType::operator=(Zero); } diff --git a/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialTensor/SpatialTensorI.H b/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialTensor/SpatialTensorI.H index f3d431bce9..d6712e8caa 100644 --- a/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialTensor/SpatialTensorI.H +++ b/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialTensor/SpatialTensorI.H @@ -33,9 +33,9 @@ inline Foam::SpatialTensor::SpatialTensor() template -inline Foam::SpatialTensor::SpatialTensor(const Foam::zero z) +inline Foam::SpatialTensor::SpatialTensor(const Foam::zero) : - SpatialTensor::msType(z) + SpatialTensor::msType(Zero) {} @@ -136,9 +136,9 @@ inline Foam::SpatialTensor::SpatialTensor(Istream& is) // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // template -inline void Foam::SpatialTensor::operator=(const Foam::zero z) +inline void Foam::SpatialTensor::operator=(const Foam::zero) { - SpatialTensor::msType::operator=(z); + SpatialTensor::msType::operator=(Zero); } diff --git a/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialVector/SpatialVectorI.H b/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialVector/SpatialVectorI.H index 9c8c862c5d..c4adce263f 100644 --- a/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialVector/SpatialVectorI.H +++ b/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialVector/SpatialVectorI.H @@ -31,9 +31,9 @@ inline Foam::SpatialVector::SpatialVector() template -inline Foam::SpatialVector::SpatialVector(const Foam::zero z) +inline Foam::SpatialVector::SpatialVector(const Foam::zero) : - SpatialVector::vsType(z) + SpatialVector::vsType(Zero) {} @@ -206,9 +206,9 @@ const Foam::SpatialVector& Foam::SpatialVector::dual::v() const // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // template -inline void Foam::SpatialVector::operator=(const Foam::zero z) +inline void Foam::SpatialVector::operator=(const Foam::zero) { - SpatialVector::vsType::operator=(z); + SpatialVector::vsType::operator=(Zero); }