mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: NamedEnum specialization within 'Foam' namespace only
- specializing within deeper nested namespaces is not allowed
This commit is contained in:
@ -28,27 +28,43 @@ License
|
|||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
namespace compressible
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
// declare specialization within 'Foam' namespace
|
||||||
template<>
|
template<>
|
||||||
const char*
|
const char* NamedEnum
|
||||||
NamedEnum<turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType, 2>::
|
<
|
||||||
names[] =
|
Foam::compressible::
|
||||||
|
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType,
|
||||||
|
2
|
||||||
|
>::names[] =
|
||||||
{
|
{
|
||||||
"power",
|
"power",
|
||||||
"flux"
|
"flux"
|
||||||
};
|
};
|
||||||
|
|
||||||
const
|
}
|
||||||
NamedEnum<turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType, 2>
|
|
||||||
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_;
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
|
||||||
|
namespace compressible
|
||||||
|
{
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
const NamedEnum
|
||||||
|
<
|
||||||
|
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType,
|
||||||
|
2
|
||||||
|
> turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_;
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -29,27 +29,41 @@ License
|
|||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "RASModel.H"
|
#include "RASModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
// declare specialization within 'Foam' namespace
|
||||||
|
template<>
|
||||||
|
const char* NamedEnum
|
||||||
|
<
|
||||||
|
Foam::incompressible::
|
||||||
|
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType,
|
||||||
|
2
|
||||||
|
>::names[] =
|
||||||
|
{
|
||||||
|
"power",
|
||||||
|
"flux"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
const NamedEnum
|
||||||
const char*
|
<
|
||||||
NamedEnum<turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType, 2>::
|
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType,
|
||||||
names[] =
|
2
|
||||||
{
|
> turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_;
|
||||||
"power",
|
|
||||||
"flux"
|
|
||||||
};
|
|
||||||
|
|
||||||
const
|
|
||||||
NamedEnum<turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType, 2>
|
|
||||||
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_;
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user