Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
2413d4d8
Commit
2413d4d8
authored
May 31, 2019
by
Mark Olesen
Committed by
Andrew Heather
May 31, 2019
Browse files
STYLE: consistent brackets for Enum construction
parent
d2826752
Changes
8
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/functionObjects/timeControl/timeControlFunctionObject.C
View file @
2413d4d8
...
...
@@ -42,12 +42,12 @@ namespace functionObjects
const
Foam
::
Enum
<
Foam
::
functionObjects
::
timeControl
::
controlMode
>
Foam
::
functionObjects
::
timeControl
::
controlModeNames_
{
(
{
{
controlMode
::
TIME
,
"time"
},
{
controlMode
::
TRIGGER
,
"trigger"
},
{
controlMode
::
TIME_OR_TRIGGER
,
"timeOrTrigger"
},
{
controlMode
::
TIME_AND_TRIGGER
,
"timeAndTrigger"
}
};
}
)
;
// * * * * * * * * * * * * * * * Private Members * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/fields/cloud/cloud.C
View file @
2413d4d8
...
...
@@ -40,10 +40,10 @@ Foam::word Foam::cloud::defaultName("defaultCloud");
const
Foam
::
Enum
<
Foam
::
cloud
::
geometryType
>
Foam
::
cloud
::
geometryTypeNames
{
(
{
{
geometryType
::
COORDINATES
,
"coordinates"
},
{
geometryType
::
POSITIONS
,
"positions"
}
};
}
)
;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
...
...
src/OpenFOAM/meshes/meshShapes/cellModel/cellModels.C
View file @
2413d4d8
...
...
@@ -35,7 +35,7 @@ Foam::PtrList<Foam::cellModel> Foam::cellModel::models_;
Foam
::
List
<
const
Foam
::
cellModel
*>
Foam
::
cellModel
::
modelPtrs_
;
const
Foam
::
Enum
<
Foam
::
cellModel
::
modelType
>
Foam
::
cellModel
::
modelNames
{
(
{
{
modelType
::
UNKNOWN
,
"unknown"
},
{
modelType
::
HEX
,
"hex"
},
{
modelType
::
WEDGE
,
"wedge"
},
...
...
@@ -44,7 +44,7 @@ const Foam::Enum<Foam::cellModel::modelType> Foam::cellModel::modelNames
{
modelType
::
TET
,
"tet"
},
{
modelType
::
TETWEDGE
,
"tetWedge"
},
{
modelType
::
SPLITHEX
,
"splitHex"
},
};
}
)
;
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
...
...
src/OpenFOAM/primitives/ranges/tableBounds/tableBounds.C
View file @
2413d4d8
...
...
@@ -29,21 +29,21 @@ License
const
Foam
::
Enum
<
Foam
::
bounds
::
normalBounding
>
Foam
::
bounds
::
normalBoundingNames
{
(
{
{
normalBounding
::
ERROR
,
"error"
},
{
normalBounding
::
WARN
,
"warn"
},
{
normalBounding
::
CLAMP
,
"clamp"
},
};
}
)
;
const
Foam
::
Enum
<
Foam
::
bounds
::
repeatableBounding
>
Foam
::
bounds
::
repeatableBoundingNames
{
(
{
{
repeatableBounding
::
ERROR
,
"error"
},
{
repeatableBounding
::
WARN
,
"warn"
},
{
repeatableBounding
::
CLAMP
,
"clamp"
},
{
repeatableBounding
::
REPEAT
,
"repeat"
},
};
}
)
;
// ************************************************************************* //
src/OpenFOAM/primitives/strings/parsing/parsing.C
View file @
2413d4d8
...
...
@@ -29,11 +29,11 @@ License
const
Foam
::
Enum
<
Foam
::
parsing
::
errorType
>
Foam
::
parsing
::
errorNames
{
(
{
{
errorType
::
GENERAL
,
"General error parsing"
},
{
errorType
::
RANGE
,
"Range error while parsing"
},
{
errorType
::
TRAILING
,
"Trailing content found parsing"
},
};
}
)
;
// ************************************************************************* //
src/fileFormats/vtk/core/foamVtkCore.C
View file @
2413d4d8
...
...
@@ -32,12 +32,12 @@ const Foam::Enum
Foam
::
vtk
::
fileTag
>
Foam
::
vtk
::
fileExtension
{
(
{
{
fileTag
::
POLY_DATA
,
"vtp"
},
{
fileTag
::
UNSTRUCTURED_GRID
,
"vtu"
},
{
fileTag
::
MULTI_BLOCK
,
"vtm"
},
// { fileTag::COLLECTION, "pvd" },
};
}
)
;
const
Foam
::
Enum
...
...
@@ -45,12 +45,12 @@ const Foam::Enum
Foam
::
vtk
::
fileTag
>
Foam
::
vtk
::
fileContentVersions
{
(
{
{
fileTag
::
POLY_DATA
,
"0.1"
},
{
fileTag
::
UNSTRUCTURED_GRID
,
"0.1"
},
{
fileTag
::
MULTI_BLOCK
,
"1.0"
},
// { fileTag::COLLECTION, "0.1" },
};
}
)
;
const
Foam
::
Enum
...
...
src/fileFormats/vtk/file/foamVtkFileWriter.C
View file @
2413d4d8
...
...
@@ -33,7 +33,7 @@ const Foam::Enum
Foam
::
vtk
::
fileWriter
::
outputState
>
Foam
::
vtk
::
fileWriter
::
stateNames
{
(
{
{
outputState
::
CLOSED
,
"closed"
},
{
outputState
::
OPENED
,
"opened"
},
{
outputState
::
DECLARED
,
"declared"
},
...
...
@@ -41,7 +41,7 @@ Foam::vtk::fileWriter::stateNames
{
outputState
::
PIECE
,
"Piece"
},
{
outputState
::
CELL_DATA
,
"CellData"
},
{
outputState
::
POINT_DATA
,
"PointData"
},
};
}
)
;
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
...
...
src/functionObjects/utilities/runTimeControl/runTimeCondition/averageCondition/averageCondition.C
View file @
2413d4d8
...
...
@@ -48,11 +48,11 @@ const Foam::Enum
Foam
::
functionObjects
::
runTimeControls
::
averageCondition
::
windowType
>
Foam
::
functionObjects
::
runTimeControls
::
averageCondition
::
windowTypeNames
{
(
{
{
windowType
::
NONE
,
"none"
},
{
windowType
::
APPROXIMATE
,
"approximate"
},
{
windowType
::
EXACT
,
"exact"
}
};
}
)
;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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