mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Changes to template specialization specification for the latest clang version.
This commit is contained in:
@ -435,8 +435,7 @@ Ostream& operator<<(Ostream&, const token::compound&);
|
|||||||
|
|
||||||
|
|
||||||
#define defineCompoundTypeName(Type, Name) \
|
#define defineCompoundTypeName(Type, Name) \
|
||||||
typedef token::Compound<Type> tokenCompound##Name##_; \
|
defineTemplateTypeNameAndDebugWithName(token::Compound<Type>, #Type, 0);
|
||||||
defineTemplateTypeNameAndDebugWithName(tokenCompound##Name##_, #Type, 0);
|
|
||||||
|
|
||||||
#define addCompoundToRunTimeSelectionTable(Type, Name) \
|
#define addCompoundToRunTimeSelectionTable(Type, Name) \
|
||||||
token::compound::addIstreamConstructorToTable<token::Compound<Type> > \
|
token::compound::addIstreamConstructorToTable<token::Compound<Type> > \
|
||||||
|
|||||||
@ -573,8 +573,10 @@ Foam::label Foam::cyclicPolyPatch::getConsistentRotationFace
|
|||||||
{
|
{
|
||||||
// Determine a face furthest away from the axis
|
// Determine a face furthest away from the axis
|
||||||
|
|
||||||
const scalarField magRadSqr =
|
const scalarField magRadSqr
|
||||||
magSqr((faceCentres - rotationCentre_) ^ rotationAxis_);
|
(
|
||||||
|
magSqr((faceCentres - rotationCentre_) ^ rotationAxis_)
|
||||||
|
);
|
||||||
|
|
||||||
label rotFace = findMax(magRadSqr);
|
label rotFace = findMax(magRadSqr);
|
||||||
|
|
||||||
|
|||||||
@ -32,24 +32,36 @@ namespace Foam
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#ifndef __clang__
|
||||||
template<>
|
template<>
|
||||||
|
#endif
|
||||||
const word triSurfaceLabelField::typeName("triSurfaceLabelField");
|
const word triSurfaceLabelField::typeName("triSurfaceLabelField");
|
||||||
|
|
||||||
|
#ifndef __clang__
|
||||||
template<>
|
template<>
|
||||||
|
#endif
|
||||||
const word triSurfaceScalarField::typeName("triSurfaceScalarField");
|
const word triSurfaceScalarField::typeName("triSurfaceScalarField");
|
||||||
|
|
||||||
|
#ifndef __clang__
|
||||||
template<>
|
template<>
|
||||||
|
#endif
|
||||||
const word triSurfaceVectorField::typeName("triSurfaceVectorField");
|
const word triSurfaceVectorField::typeName("triSurfaceVectorField");
|
||||||
|
|
||||||
|
#ifndef __clang__
|
||||||
template<>
|
template<>
|
||||||
|
#endif
|
||||||
const word triSurfaceSphericalTensorField::typeName
|
const word triSurfaceSphericalTensorField::typeName
|
||||||
("triSurfaceSphericalTensorField");
|
("triSurfaceSphericalTensorField");
|
||||||
|
|
||||||
|
#ifndef __clang__
|
||||||
template<>
|
template<>
|
||||||
|
#endif
|
||||||
const word triSurfaceSymmTensorField::typeName
|
const word triSurfaceSymmTensorField::typeName
|
||||||
("triSurfaceSymmTensorField");
|
("triSurfaceSymmTensorField");
|
||||||
|
|
||||||
|
#ifndef __clang__
|
||||||
template<>
|
template<>
|
||||||
|
#endif
|
||||||
const word triSurfaceTensorField::typeName("triSurfaceTensorField");
|
const word triSurfaceTensorField::typeName("triSurfaceTensorField");
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user