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
b2be9fa3
Commit
b2be9fa3
authored
Jul 26, 2018
by
mattijs
Browse files
STYLE: snappyHexMesh: unused option
parent
d7d4a6e8
Changes
4
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C
View file @
b2be9fa3
...
...
@@ -878,24 +878,24 @@ int main(int argc, char *argv[])
}
}
// Set output level
{
wordList
flags
;
if
(
meshDict
.
readIfPresent
(
"outputFlags"
,
flags
))
{
meshRefinement
::
outputLevel
(
meshRefinement
::
outputType
(
meshRefinement
::
readFlags
(
meshRefinement
::
outputTypeNames
,
flags
)
)
);
}
}
//
//
Set output level
//
{
//
wordList flags;
//
if (meshDict.readIfPresent("outputFlags", flags))
//
{
//
meshRefinement::outputLevel
//
(
//
meshRefinement::outputType
//
(
//
meshRefinement::readFlags
//
(
//
meshRefinement::outputTypeNames,
//
flags
//
)
//
)
//
);
//
}
//
}
// for the impatient who want to see some output files:
profiling
::
writeNow
();
...
...
src/mesh/snappyHexMesh/meshRefinement/meshRefinement.C
View file @
b2be9fa3
...
...
@@ -80,14 +80,14 @@ Foam::meshRefinement::debugTypeNames
};
const
Foam
::
Enum
<
Foam
::
meshRefinement
::
outputType
>
Foam
::
meshRefinement
::
outputTypeNames
{
{
outputType
::
OUTPUTLAYERINFO
,
"layerInfo"
}
};
//
const Foam::Enum
//
<
//
Foam::meshRefinement::outputType
//
>
//
Foam::meshRefinement::outputTypeNames
//
{
//
{ outputType::OUTPUTLAYERINFO, "layerInfo" }
//
};
const
Foam
::
Enum
...
...
@@ -106,7 +106,7 @@ Foam::meshRefinement::writeTypeNames
Foam
::
meshRefinement
::
writeType
Foam
::
meshRefinement
::
writeLevel_
;
Foam
::
meshRefinement
::
outputType
Foam
::
meshRefinement
::
outputLevel_
;
//
Foam::meshRefinement::outputType Foam::meshRefinement::outputLevel_;
// Inside/outside test for polyMesh:.findCell()
// 2.4.x : default = polyMesh::FACE_DIAG_TRIS
...
...
@@ -3012,16 +3012,16 @@ void Foam::meshRefinement::writeLevel(const writeType flags)
}
Foam
::
meshRefinement
::
outputType
Foam
::
meshRefinement
::
outputLevel
()
{
return
outputLevel_
;
}
void
Foam
::
meshRefinement
::
outputLevel
(
const
outputType
flags
)
{
outputLevel_
=
flags
;
}
//
Foam::meshRefinement::outputType Foam::meshRefinement::outputLevel()
//
{
//
return outputLevel_;
//
}
//
//
//
void Foam::meshRefinement::outputLevel(const outputType flags)
//
{
//
outputLevel_ = flags;
//
}
// ************************************************************************* //
src/mesh/snappyHexMesh/meshRefinement/meshRefinement.H
View file @
b2be9fa3
...
...
@@ -98,13 +98,13 @@ public:
static
const
Enum
<
debugType
>
debugTypeNames
;
//- Enumeration for what to output. Used as a bit-pattern.
enum
outputType
{
OUTPUTLAYERINFO
=
(
1
<<
0
)
};
static
const
Enum
<
outputType
>
outputTypeNames
;
//
//- Enumeration for what to output. Used as a bit-pattern.
//
enum outputType
//
{
//
OUTPUTLAYERINFO = (1 << 0)
//
};
//
//
static const Enum<outputType> outputTypeNames;
//- Enumeration for what to write. Used as a bit-pattern.
enum
writeType
...
...
@@ -134,8 +134,8 @@ private:
//- Control of writing level
static
writeType
writeLevel_
;
//- Control of output/log level
static
outputType
outputLevel_
;
//
//- Control of output/log level
//
static outputType outputLevel_;
// Private data
...
...
@@ -1513,9 +1513,9 @@ public:
static
writeType
writeLevel
();
static
void
writeLevel
(
const
writeType
);
//- Get/set output level
static
outputType
outputLevel
();
static
void
outputLevel
(
const
outputType
);
//
//- Get/set output level
//
static outputType outputLevel();
//
static void outputLevel(const outputType);
//- Helper: convert wordList into bit pattern using provided Enum
...
...
src/mesh/snappyHexMesh/snappyHexMeshDriver/refinementParameters/refinementParameters.C
View file @
b2be9fa3
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2015
-2018
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -84,10 +84,9 @@ Foam::refinementParameters::refinementParameters(const dictionary& dict)
<<
exit
(
FatalIOError
);
}
}
List
<
Tuple2
<
point
,
word
>>
pointsToZone
;
if
(
dict
.
readIfPresent
(
"locationsInMesh"
,
pointsToZone
))
else
{
List
<
Tuple2
<
point
,
word
>>
pointsToZone
(
dict
.
lookup
(
"locationsInMesh"
));
label
nZones
=
locationsInMesh_
.
size
();
locationsInMesh_
.
setSize
(
nZones
+
pointsToZone
.
size
());
zonesInMesh_
.
setSize
(
locationsInMesh_
.
size
());
...
...
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