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 "volFields.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
namespace compressible
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
template<>
|
||||
const char*
|
||||
NamedEnum<turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType, 2>::
|
||||
names[] =
|
||||
namespace Foam
|
||||
{
|
||||
// declare specialization within 'Foam' namespace
|
||||
template<>
|
||||
const char* NamedEnum
|
||||
<
|
||||
Foam::compressible::
|
||||
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType,
|
||||
2
|
||||
>::names[] =
|
||||
{
|
||||
"power",
|
||||
"flux"
|
||||
};
|
||||
|
||||
const
|
||||
NamedEnum<turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType, 2>
|
||||
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_;
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
namespace compressible
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
const NamedEnum
|
||||
<
|
||||
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType,
|
||||
2
|
||||
> turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_;
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
@ -29,27 +29,41 @@ License
|
||||
#include "volFields.H"
|
||||
#include "RASModel.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
// declare specialization within 'Foam' namespace
|
||||
template<>
|
||||
const char* NamedEnum
|
||||
<
|
||||
Foam::incompressible::
|
||||
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType,
|
||||
2
|
||||
>::names[] =
|
||||
{
|
||||
"power",
|
||||
"flux"
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
namespace incompressible
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
template<>
|
||||
const char*
|
||||
NamedEnum<turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType, 2>::
|
||||
names[] =
|
||||
{
|
||||
"power",
|
||||
"flux"
|
||||
};
|
||||
|
||||
const
|
||||
NamedEnum<turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType, 2>
|
||||
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_;
|
||||
const NamedEnum
|
||||
<
|
||||
turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceType,
|
||||
2
|
||||
> turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_;
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user