From ad1c2e75786c50ee6d9d2b8363047707485d0ba8 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 15 Jun 2011 16:52:22 +0100 Subject: [PATCH] fieldSources: Corrected for clang --- .../basicSource/basicSource/basicSource.C | 37 +++++++++---------- .../explicitSource/explicitSource.C | 30 ++++++++------- 2 files changed, 34 insertions(+), 33 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/fieldSources/basicSource/basicSource/basicSource.C b/src/finiteVolume/cfdTools/general/fieldSources/basicSource/basicSource/basicSource.C index 40f013b2d5..a5bd0efaed 100644 --- a/src/finiteVolume/cfdTools/general/fieldSources/basicSource/basicSource/basicSource.C +++ b/src/finiteVolume/cfdTools/general/fieldSources/basicSource/basicSource/basicSource.C @@ -34,28 +34,27 @@ namespace Foam { defineTypeNameAndDebug(basicSource, 0); defineRunTimeSelectionTable(basicSource, dictionary); + + + // * * * * * * * * * * Static Member Functions * * * * * * * * * * * * * // + + template<> const char* NamedEnum + < + basicSource::selectionModeType, + 4 + >::names[] = + { + "points", + "cellSet", + "cellZone", + "all" + }; + + const NamedEnum + basicSource::selectionModeTypeNames_; } -// * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * * // - -template<> const char* Foam::NamedEnum -< - Foam::basicSource::selectionModeType, - 4 ->::names[] = -{ - "points", - "cellSet", - "cellZone", - "all" -}; - - -const Foam::NamedEnum - Foam::basicSource::selectionModeTypeNames_; - - // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // void Foam::basicSource::setSelection(const dictionary& dict) diff --git a/src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSource/explicitSource.C b/src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSource/explicitSource.C index e4af1181b3..7c798af97e 100644 --- a/src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSource/explicitSource.C +++ b/src/finiteVolume/cfdTools/general/fieldSources/basicSource/explicitSource/explicitSource.C @@ -40,22 +40,24 @@ namespace Foam explicitSource, dictionary ); + + + // * * * * * * * * * * Static Member Functions * * * * * * * * * * * * * // + + template<> const char* NamedEnum + < + explicitSource::volumeModeType, + 2 + >::names[] = + { + "absolute", + "specific" + }; + + const NamedEnum + explicitSource::volumeModeTypeNames_; } -template<> const char* Foam::NamedEnum -< - Foam::explicitSource::volumeModeType, - 2 ->::names[] = -{ - "absolute", - "specific" -}; - - -const Foam::NamedEnum - Foam::explicitSource::volumeModeTypeNames_; - // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //