mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: specializations of templates within namespace Foam
- otherwise gets flagged as an error by clang
This commit is contained in:
@ -28,32 +28,35 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* const Foam::labelTensor::typeName = "labelTensor";
|
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::labelTensor::componentNames[] =
|
|
||||||
{
|
{
|
||||||
|
template<>
|
||||||
|
const char* const Foam::labelTensor::typeName = "labelTensor";
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::labelTensor::componentNames[] =
|
||||||
|
{
|
||||||
"xx", "xy", "xz",
|
"xx", "xy", "xz",
|
||||||
"yx", "yy", "yz",
|
"yx", "yy", "yz",
|
||||||
"zx", "zy", "zz"
|
"zx", "zy", "zz"
|
||||||
};
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const Foam::labelTensor Foam::labelTensor::zero
|
const Foam::labelTensor Foam::labelTensor::zero
|
||||||
(
|
(
|
||||||
0, 0, 0,
|
0, 0, 0,
|
||||||
0, 0, 0,
|
0, 0, 0,
|
||||||
0, 0, 0
|
0, 0, 0
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const Foam::labelTensor Foam::labelTensor::one
|
const Foam::labelTensor Foam::labelTensor::one
|
||||||
(
|
(
|
||||||
1, 1, 1,
|
1, 1, 1,
|
||||||
1, 1, 1,
|
1, 1, 1,
|
||||||
1, 1, 1
|
1, 1, 1
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -27,17 +27,19 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* const Foam::labelVector::typeName = "labelVector";
|
{
|
||||||
|
template<>
|
||||||
|
const char* const Foam::labelVector::typeName = "labelVector";
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::labelVector::componentNames[] = {"x", "y", "z"};
|
const char* Foam::labelVector::componentNames[] = {"x", "y", "z"};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const Foam::labelVector Foam::labelVector::zero(0, 0, 0);
|
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::one(1, 1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user