mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Clang: Updates to support the changes in the current SVN version of Clang/LLVM
This commit is contained in:
@ -236,8 +236,8 @@ case ThirdParty:
|
|||||||
# using clang - not gcc
|
# using clang - not gcc
|
||||||
setenv WM_CC 'clang'
|
setenv WM_CC 'clang'
|
||||||
setenv WM_CXX 'clang++'
|
setenv WM_CXX 'clang++'
|
||||||
set clang_version=llvm-2.9
|
#set clang_version=llvm-2.9
|
||||||
#set clang_version=llvm-svn
|
set clang_version=llvm-svn
|
||||||
breaksw
|
breaksw
|
||||||
default:
|
default:
|
||||||
echo
|
echo
|
||||||
|
|||||||
@ -253,8 +253,8 @@ OpenFOAM | ThirdParty)
|
|||||||
# using clang - not gcc
|
# using clang - not gcc
|
||||||
export WM_CC='clang'
|
export WM_CC='clang'
|
||||||
export WM_CXX='clang++'
|
export WM_CXX='clang++'
|
||||||
clang_version=llvm-2.9
|
#clang_version=llvm-2.9
|
||||||
#clang_version=llvm-svn
|
clang_version=llvm-svn
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo
|
echo
|
||||||
|
|||||||
@ -119,7 +119,6 @@ public: \
|
|||||||
defineTypeNameWithName(Type, Name)
|
defineTypeNameWithName(Type, Name)
|
||||||
//- Define the typeName as \a Name for template sub-classes
|
//- Define the typeName as \a Name for template sub-classes
|
||||||
# define defineTemplate2TypeNameWithName(Type, Name) \
|
# define defineTemplate2TypeNameWithName(Type, Name) \
|
||||||
template<> \
|
|
||||||
template<> \
|
template<> \
|
||||||
defineTypeNameWithName(Type, Name)
|
defineTypeNameWithName(Type, Name)
|
||||||
#endif
|
#endif
|
||||||
@ -161,7 +160,6 @@ public: \
|
|||||||
defineDebugSwitchWithName(Type, Name, DebugSwitch)
|
defineDebugSwitchWithName(Type, Name, DebugSwitch)
|
||||||
//- Define the debug information for templates sub-classes, lookup as \a Name
|
//- Define the debug information for templates sub-classes, lookup as \a Name
|
||||||
# define defineTemplate2DebugSwitchWithName(Type, Name, DebugSwitch) \
|
# define defineTemplate2DebugSwitchWithName(Type, Name, DebugSwitch) \
|
||||||
template<> \
|
|
||||||
template<> \
|
template<> \
|
||||||
defineDebugSwitchWithName(Type, Name, DebugSwitch)
|
defineDebugSwitchWithName(Type, Name, DebugSwitch)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -33,9 +33,9 @@ License
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum
|
const char* NamedEnum
|
||||||
<
|
<
|
||||||
Foam::fanPressureFvPatchScalarField::fanFlowDirection,
|
fanPressureFvPatchScalarField::fanFlowDirection,
|
||||||
2
|
2
|
||||||
>::names[] =
|
>::names[] =
|
||||||
{
|
{
|
||||||
|
|||||||
@ -62,12 +62,12 @@ bool noFilm::read()
|
|||||||
|
|
||||||
noFilm::noFilm
|
noFilm::noFilm
|
||||||
(
|
(
|
||||||
const word&,
|
const word& modelType,
|
||||||
const fvMesh& mesh,
|
const fvMesh& mesh,
|
||||||
const dimensionedVector&
|
const dimensionedVector& g
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
surfaceFilmModel(mesh)
|
surfaceFilmModel(modelType, mesh, g)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -28,17 +28,19 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum
|
|
||||||
<
|
|
||||||
Foam::regionModels::surfaceFilmModels::surfaceFilmModel::thermoModelType,
|
|
||||||
2
|
|
||||||
>::names[] =
|
|
||||||
{
|
{
|
||||||
"constant",
|
template<>
|
||||||
"singleComponent"
|
const char* NamedEnum
|
||||||
};
|
<
|
||||||
|
regionModels::surfaceFilmModels::surfaceFilmModel::thermoModelType,
|
||||||
|
2
|
||||||
|
>::names[] =
|
||||||
|
{
|
||||||
|
"constant",
|
||||||
|
"singleComponent"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum
|
const Foam::NamedEnum
|
||||||
<
|
<
|
||||||
@ -48,7 +50,7 @@ const Foam::NamedEnum
|
|||||||
Foam::regionModels::surfaceFilmModels::surfaceFilmModel::thermoModelTypeNames_;
|
Foam::regionModels::surfaceFilmModels::surfaceFilmModel::thermoModelTypeNames_;
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
@ -81,14 +83,6 @@ bool surfaceFilmModel::read()
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
surfaceFilmModel::surfaceFilmModel(const fvMesh& mesh)
|
|
||||||
:
|
|
||||||
singleLayerRegion(mesh),
|
|
||||||
g_(vector::zero),
|
|
||||||
thermoModel_(tmConstant)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
surfaceFilmModel::surfaceFilmModel
|
surfaceFilmModel::surfaceFilmModel
|
||||||
(
|
(
|
||||||
const word& modelType,
|
const word& modelType,
|
||||||
|
|||||||
@ -130,9 +130,6 @@ public:
|
|||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null
|
|
||||||
surfaceFilmModel(const fvMesh& mesh);
|
|
||||||
|
|
||||||
//- Construct from type name, mesh and gravity vector
|
//- Construct from type name, mesh and gravity vector
|
||||||
surfaceFilmModel
|
surfaceFilmModel
|
||||||
(
|
(
|
||||||
|
|||||||
@ -32,36 +32,24 @@ 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