Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
85bae179
Commit
85bae179
authored
Dec 17, 2010
by
Mark Olesen
Browse files
STYLE: add formatting of NamedEnum template arguments
parent
3d2734f6
Changes
25
Hide whitespace changes
Inline
Side-by-side
src/OSspecific/POSIX/fileMonitor.C
View file @
85bae179
...
...
@@ -55,7 +55,11 @@ const Foam::NamedEnum<Foam::fileMonitor::fileState, 3>
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
fileMonitor
::
fileState
,
3
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
fileMonitor
::
fileState
,
3
>::
names
[]
=
{
"unmodified"
,
"modified"
,
...
...
src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C
View file @
85bae179
...
...
@@ -35,7 +35,11 @@ defineTypeNameAndDebug(Foam::UPstream, 0);
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
UPstream
::
commsTypes
,
3
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
UPstream
::
commsTypes
,
3
>::
names
[]
=
{
"blocking"
,
"scheduled"
,
...
...
src/OpenFOAM/db/Time/Time.C
View file @
85bae179
...
...
@@ -35,7 +35,11 @@ defineTypeNameAndDebug(Foam::Time, 0);
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
Time
::
stopAtControls
,
4
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
Time
::
stopAtControls
,
4
>::
names
[]
=
{
"endTime"
,
"noWriteNow"
,
...
...
@@ -44,7 +48,11 @@ namespace Foam
};
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
Time
::
writeControls
,
5
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
Time
::
writeControls
,
5
>::
names
[]
=
{
"timeStep"
,
"runTime"
,
...
...
src/OpenFOAM/db/regIOobject/regIOobject.C
View file @
85bae179
...
...
@@ -39,7 +39,11 @@ int Foam::regIOobject::fileModificationSkew
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
regIOobject
::
fileCheckTypes
,
4
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
regIOobject
::
fileCheckTypes
,
4
>::
names
[]
=
{
"timeStamp"
,
"timeStampMaster"
,
...
...
src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/oldCyclic/oldCyclicPolyPatch.C
View file @
85bae179
...
...
@@ -44,19 +44,21 @@ namespace Foam
addToRunTimeSelectionTable
(
polyPatch
,
oldCyclicPolyPatch
,
word
);
addToRunTimeSelectionTable
(
polyPatch
,
oldCyclicPolyPatch
,
dictionary
);
template
<>
const
char
*
NamedEnum
<
oldCyclicPolyPatch
::
transformType
,
3
>::
names
[]
=
{
"unknown"
,
"rotational"
,
"translational"
};
const
NamedEnum
<
oldCyclicPolyPatch
::
transformType
,
3
>
oldCyclicPolyPatch
::
transformTypeNames
;
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
oldCyclicPolyPatch
::
transformType
,
3
>::
names
[]
=
{
"unknown"
,
"rotational"
,
"translational"
}
;
}
const
Foam
::
NamedEnum
<
Foam
::
oldCyclicPolyPatch
::
transformType
,
3
>
Foam
::
oldCyclicPolyPatch
::
transformTypeNames
;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/meshes/primitiveShapes/triangle/intersection.C
View file @
85bae179
...
...
@@ -32,14 +32,22 @@ Foam::scalar Foam::intersection::planarTol_ = 0.2;
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
intersection
::
direction
,
2
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
intersection
::
direction
,
2
>::
names
[]
=
{
"vector"
,
"contactSphere"
};
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
intersection
::
algorithm
,
3
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
intersection
::
algorithm
,
3
>::
names
[]
=
{
"fullRay"
,
"halfRay"
,
...
...
src/dynamicMesh/meshCut/directions/directions.C
View file @
85bae179
...
...
@@ -39,7 +39,11 @@ License
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
directions
::
directionType
,
3
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
directions
::
directionType
,
3
>::
names
[]
=
{
"tan1"
,
"tan2"
,
...
...
@@ -269,7 +273,6 @@ Foam::vectorField Foam::directions::propagateDirection
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from dictionary
Foam
::
directions
::
directions
(
const
polyMesh
&
mesh
,
...
...
@@ -353,7 +356,7 @@ Foam::directions::directions
FatalErrorIn
(
"directions::directions(const polyMesh&, const dictionary&,"
"const twoDPointCorrector*"
"const twoDPointCorrector*
)
"
)
<<
"Cannot find patch "
<<
patchName
<<
exit
(
FatalError
);
...
...
@@ -373,7 +376,7 @@ Foam::directions::directions
WarningIn
(
"directions::directions(const polyMesh&, const dictionary&,"
"const twoDPointCorrector*"
"const twoDPointCorrector*
)
"
)
<<
"Discarding user specified tan1 since 2D case."
<<
endl
<<
"Recalculated tan1 from face normal and planeNormal as "
<<
tan1
<<
endl
<<
endl
;
...
...
@@ -441,7 +444,7 @@ Foam::directions::directions
FatalErrorIn
(
"directions::directions(const polyMesh&, const dictionary&,"
"const twoDPointCorrector*"
"const twoDPointCorrector*
)
"
)
<<
"Unknown coordinate system "
<<
coordSystem
<<
endl
<<
"Known types are global and patchLocal"
...
...
src/lagrangian/intermediate/phaseProperties/phaseProperties/phaseProperties.C
View file @
85bae179
...
...
@@ -30,7 +30,11 @@ License
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
phaseProperties
::
phaseType
,
4
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
phaseProperties
::
phaseType
,
4
>::
names
[]
=
{
"gas"
,
"liquid"
,
...
...
src/mesh/autoMesh/autoHexMesh/refinementSurfaces/refinementSurfaces.C
View file @
85bae179
...
...
@@ -37,8 +37,11 @@ License
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
refinementSurfaces
::
areaSelectionAlgo
,
4
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
refinementSurfaces
::
areaSelectionAlgo
,
4
>::
names
[]
=
{
"inside"
,
"outside"
,
...
...
src/meshTools/directMapped/directMappedPolyPatch/directMappedPatchBase.C
View file @
85bae179
...
...
@@ -43,7 +43,11 @@ namespace Foam
defineTypeNameAndDebug
(
directMappedPatchBase
,
0
);
template
<>
const
char
*
NamedEnum
<
directMappedPatchBase
::
sampleMode
,
3
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
directMappedPatchBase
::
sampleMode
,
3
>::
names
[]
=
{
"nearestCell"
,
"nearestPatchFace"
,
...
...
@@ -55,7 +59,11 @@ namespace Foam
template
<>
const
char
*
NamedEnum
<
directMappedPatchBase
::
offsetMode
,
3
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
directMappedPatchBase
::
offsetMode
,
3
>::
names
[]
=
{
"uniform"
,
"nonuniform"
,
...
...
@@ -74,7 +82,6 @@ namespace Foam
class
nearestEqOp
{
public:
void
operator
()(
nearInfo
&
x
,
const
nearInfo
&
y
)
const
...
...
@@ -95,6 +102,13 @@ namespace Foam
}
const
Foam
::
NamedEnum
<
Foam
::
directMappedPatchBase
::
sampleMode
,
3
>
Foam
::
directMappedPatchBase
::
sampleModeNames_
;
const
Foam
::
NamedEnum
<
Foam
::
directMappedPatchBase
::
offsetMode
,
3
>
Foam
::
directMappedPatchBase
::
offsetModeNames_
;
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void
Foam
::
directMappedPatchBase
::
collectSamples
...
...
src/meshTools/sets/cellSources/faceToCell/faceToCell.C
View file @
85bae179
...
...
@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable
(
topoSetSource
,
faceToCell
,
istream
);
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
faceToCell
::
faceAction
,
4
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
faceToCell
::
faceAction
,
4
>::
names
[]
=
{
"neighbour"
,
"owner"
,
...
...
src/meshTools/sets/cellSources/faceZoneToCell/faceZoneToCell.C
View file @
85bae179
...
...
@@ -37,7 +37,11 @@ namespace Foam
addToRunTimeSelectionTable
(
topoSetSource
,
faceZoneToCell
,
istream
);
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
faceZoneToCell
::
faceAction
,
2
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
faceZoneToCell
::
faceAction
,
2
>::
names
[]
=
{
"master"
,
"slave"
...
...
src/meshTools/sets/cellSources/pointToCell/pointToCell.C
View file @
85bae179
...
...
@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable
(
topoSetSource
,
pointToCell
,
istream
);
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
pointToCell
::
pointAction
,
1
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
pointToCell
::
pointAction
,
1
>::
names
[]
=
{
"any"
};
...
...
src/meshTools/sets/faceSources/cellToFace/cellToFace.C
View file @
85bae179
...
...
@@ -39,7 +39,11 @@ namespace Foam
addToRunTimeSelectionTable
(
topoSetSource
,
cellToFace
,
istream
);
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
cellToFace
::
cellAction
,
2
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
cellToFace
::
cellAction
,
2
>::
names
[]
=
{
"all"
,
"both"
...
...
src/meshTools/sets/faceSources/pointToFace/pointToFace.C
View file @
85bae179
...
...
@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable
(
topoSetSource
,
pointToFace
,
istream
);
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
pointToFace
::
pointAction
,
2
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
pointToFace
::
pointAction
,
2
>::
names
[]
=
{
"any"
,
"all"
...
...
src/meshTools/sets/pointSources/cellToPoint/cellToPoint.C
View file @
85bae179
...
...
@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable
(
topoSetSource
,
cellToPoint
,
istream
);
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
cellToPoint
::
cellAction
,
1
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
cellToPoint
::
cellAction
,
1
>::
names
[]
=
{
"all"
};
...
...
src/meshTools/sets/pointSources/faceToPoint/faceToPoint.C
View file @
85bae179
...
...
@@ -38,7 +38,11 @@ namespace Foam
addToRunTimeSelectionTable
(
topoSetSource
,
faceToPoint
,
istream
);
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
faceToPoint
::
faceAction
,
1
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
faceToPoint
::
faceAction
,
1
>::
names
[]
=
{
"all"
};
...
...
src/meshTools/sets/topoSetSource/topoSetSource.C
View file @
85bae179
...
...
@@ -36,7 +36,11 @@ namespace Foam
defineRunTimeSelectionTable
(
topoSetSource
,
istream
);
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
topoSetSource
::
setAction
,
8
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
topoSetSource
::
setAction
,
8
>::
names
[]
=
{
"clear"
,
"new"
,
...
...
src/postProcessing/functionObjects/field/fieldAverage/fieldAverageItem/fieldAverageItem.C
View file @
85bae179
...
...
@@ -30,7 +30,11 @@ License
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
fieldAverageItem
::
baseType
,
2
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
fieldAverageItem
::
baseType
,
2
>::
names
[]
=
{
"iteration"
,
"time"
...
...
src/postProcessing/functionObjects/field/fieldMinMax/fieldMinMax.C
View file @
85bae179
...
...
@@ -36,7 +36,11 @@ defineTypeNameAndDebug(Foam::fieldMinMax, 0);
namespace
Foam
{
template
<>
const
char
*
Foam
::
NamedEnum
<
Foam
::
fieldMinMax
::
modeType
,
2
>::
names
[]
=
const
char
*
Foam
::
NamedEnum
<
Foam
::
fieldMinMax
::
modeType
,
2
>::
names
[]
=
{
"magnitude"
,
"component"
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment