From 26957ae93bc72372eeff37d74247d95f3b179fea Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 29 Sep 2010 19:59:01 +0100 Subject: [PATCH] Template specialisation in wrong namespace --- ...entHeatFluxTemperatureFvPatchScalarField.C | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.C b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.C index cc791bc88..1826d6f86 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.C @@ -34,25 +34,33 @@ License namespace Foam { -namespace compressible -{ // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // +// Note: Specialisation must be in the same namespace as the template +// HJ, 29/Sep/2010 + template<> const char* -NamedEnum:: -names[] = - { - "power", - "flux" - }; +NamedEnum::names[] = +{ + "power", + "flux" +}; const -NamedEnum - turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_; +NamedEnum +compressible::turbulentHeatFluxTemperatureFvPatchScalarField:: +heatSourceTypeNames_; +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace compressible +{ + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // turbulentHeatFluxTemperatureFvPatchScalarField::