diff --git a/src/OpenFOAM/primitives/Tensor/labelTensor/labelTensor.C b/src/OpenFOAM/primitives/Tensor/labelTensor/labelTensor.C index 63419832aff8f394e9910597718d8146f04ddebc..e8a189f0946e4cde7c0b182603597960e840efbc 100644 --- a/src/OpenFOAM/primitives/Tensor/labelTensor/labelTensor.C +++ b/src/OpenFOAM/primitives/Tensor/labelTensor/labelTensor.C @@ -28,32 +28,35 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // -template<> -const char* const Foam::labelTensor::typeName = "labelTensor"; - -template<> -const char* Foam::labelTensor::componentNames[] = +namespace Foam { - "xx", "xy", "xz", - "yx", "yy", "yz", - "zx", "zy", "zz" -}; - -template<> -const Foam::labelTensor Foam::labelTensor::zero -( - 0, 0, 0, - 0, 0, 0, - 0, 0, 0 -); - -template<> -const Foam::labelTensor Foam::labelTensor::one -( - 1, 1, 1, - 1, 1, 1, - 1, 1, 1 -); + template<> + const char* const Foam::labelTensor::typeName = "labelTensor"; + + template<> + const char* Foam::labelTensor::componentNames[] = + { + "xx", "xy", "xz", + "yx", "yy", "yz", + "zx", "zy", "zz" + }; + + template<> + const Foam::labelTensor Foam::labelTensor::zero + ( + 0, 0, 0, + 0, 0, 0, + 0, 0, 0 + ); + + template<> + const Foam::labelTensor Foam::labelTensor::one + ( + 1, 1, 1, + 1, 1, 1, + 1, 1, 1 + ); +} // ************************************************************************* // diff --git a/src/OpenFOAM/primitives/Vector/labelVector/labelVector.C b/src/OpenFOAM/primitives/Vector/labelVector/labelVector.C index b7473ee50e41d6f410d3bc9b3811bf84d6e3b094..c98da288cf6c63fd19f3630b82a6c445012f84ff 100644 --- a/src/OpenFOAM/primitives/Vector/labelVector/labelVector.C +++ b/src/OpenFOAM/primitives/Vector/labelVector/labelVector.C @@ -27,17 +27,19 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // -template<> -const char* const Foam::labelVector::typeName = "labelVector"; +namespace Foam +{ + template<> + const char* const Foam::labelVector::typeName = "labelVector"; -template<> -const char* Foam::labelVector::componentNames[] = {"x", "y", "z"}; + template<> + const char* Foam::labelVector::componentNames[] = {"x", "y", "z"}; -template<> -const Foam::labelVector Foam::labelVector::zero(0, 0, 0); - -template<> -const Foam::labelVector Foam::labelVector::one(1, 1, 1); + template<> + const Foam::labelVector Foam::labelVector::zero(0, 0, 0); + template<> + const Foam::labelVector Foam::labelVector::one(1, 1, 1); +} // ************************************************************************* //