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
d2ccea05
Commit
d2ccea05
authored
Jul 26, 2018
by
Mark Olesen
Browse files
STYLE: change foamUpgradeCyclics -test option to -dry-run
parent
329f3a99
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/utilities/preProcessing/foamUpgradeCyclics/foamUpgradeCyclics.C
View file @
d2ccea05
...
...
@@ -34,7 +34,7 @@ Usage
\b foamUpgradeCyclics [OPTION]
Options:
- \par -
test
- \par -
dry-run
Suppress writing the updated files with split cyclics
- \par -enableFunctionEntries
...
...
@@ -70,7 +70,7 @@ namespace Foam
// Read boundary file without reading mesh
void
rewriteBoundary
(
const
bool
isTestR
un
,
const
bool
dryr
un
,
const
IOobject
&
io
,
const
fileName
&
regionPrefix
,
HashTable
<
word
>&
thisNames
,
...
...
@@ -237,9 +237,9 @@ void rewriteBoundary
if
(
returnReduce
(
nOldCyclics
,
sumOp
<
label
>
())
>
0
)
{
if
(
isTestR
un
)
if
(
dryr
un
)
{
//Info<< "-
test
option: no changes made" << nl << endl;
//Info<< "-
dry-run
option: no changes made" << nl << endl;
}
else
{
...
...
@@ -263,7 +263,7 @@ void rewriteBoundary
void
rewriteField
(
const
bool
isTestR
un
,
const
bool
dryr
un
,
const
Time
&
runTime
,
const
word
&
fieldName
,
const
HashTable
<
word
>&
thisNames
,
...
...
@@ -342,7 +342,7 @@ void rewriteField
if
(
returnReduce
(
nChanged
,
sumOp
<
label
>
())
>
0
)
{
if
(
isTestR
un
)
if
(
dryr
un
)
{
//Info<< "-test option: no changes made" << endl;
}
...
...
@@ -369,7 +369,7 @@ void rewriteField
void
rewriteFields
(
const
bool
isTestR
un
,
const
bool
dryr
un
,
const
Time
&
runTime
,
const
wordList
&
fieldNames
,
const
HashTable
<
word
>&
thisNames
,
...
...
@@ -380,7 +380,7 @@ void rewriteFields
{
rewriteField
(
isTestR
un
,
dryr
un
,
runTime
,
fieldName
,
thisNames
,
...
...
@@ -395,7 +395,12 @@ int main(int argc, char *argv[])
{
timeSelector
::
addOptions
();
argList
::
addBoolOption
(
"test"
,
"test only; do not change any files"
);
argList
::
addOptionCompat
(
"dry-run"
,
{
"test"
,
1806
});
argList
::
addBoolOption
(
"dry-run"
,
"test only do not change any files"
);
argList
::
addBoolOption
(
"enableFunctionEntries"
,
...
...
@@ -414,10 +419,10 @@ int main(int argc, char *argv[])
instantList
timeDirs
=
timeSelector
::
select0
(
runTime
,
args
);
const
bool
isTestR
un
=
args
.
found
(
"
test
"
);
if
(
isTestR
un
)
const
bool
dryr
un
=
args
.
found
(
"
dry-run
"
);
if
(
dryr
un
)
{
Info
<<
"-
test
option: no changes made"
<<
nl
<<
endl
;
Info
<<
"-
dry-run
option: no changes made"
<<
nl
<<
endl
;
}
const
bool
enableEntries
=
args
.
found
(
"enableFunctionEntries"
);
...
...
@@ -452,7 +457,7 @@ int main(int argc, char *argv[])
{
rewriteBoundary
(
isTestR
un
,
dryr
un
,
io
,
regionPrefix
,
thisNames
,
...
...
@@ -486,7 +491,7 @@ int main(int argc, char *argv[])
{
rewriteBoundary
(
isTestR
un
,
dryr
un
,
io
,
regionPrefix
,
thisNames
,
...
...
@@ -510,7 +515,7 @@ int main(int argc, char *argv[])
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
volScalarField
::
typeName
),
thisNames
,
...
...
@@ -518,7 +523,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
volVectorField
::
typeName
),
thisNames
,
...
...
@@ -526,7 +531,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
volSphericalTensorField
::
typeName
),
thisNames
,
...
...
@@ -534,7 +539,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
volSymmTensorField
::
typeName
),
thisNames
,
...
...
@@ -542,7 +547,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
volTensorField
::
typeName
),
thisNames
,
...
...
@@ -555,7 +560,7 @@ int main(int argc, char *argv[])
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
pointScalarField
::
typeName
),
thisNames
,
...
...
@@ -563,7 +568,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
pointVectorField
::
typeName
),
thisNames
,
...
...
@@ -571,7 +576,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
pointSphericalTensorField
::
typeName
),
thisNames
,
...
...
@@ -579,7 +584,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
pointSymmTensorField
::
typeName
),
thisNames
,
...
...
@@ -587,7 +592,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
pointTensorField
::
typeName
),
thisNames
,
...
...
@@ -600,7 +605,7 @@ int main(int argc, char *argv[])
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
surfaceScalarField
::
typeName
),
thisNames
,
...
...
@@ -608,7 +613,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
surfaceVectorField
::
typeName
),
thisNames
,
...
...
@@ -616,7 +621,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
surfaceSphericalTensorField
::
typeName
),
thisNames
,
...
...
@@ -624,7 +629,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
surfaceSymmTensorField
::
typeName
),
thisNames
,
...
...
@@ -632,7 +637,7 @@ int main(int argc, char *argv[])
);
rewriteFields
(
isTestR
un
,
dryr
un
,
runTime
,
objects
.
names
(
surfaceTensorField
::
typeName
),
thisNames
,
...
...
etc/config.sh/completion_cache
View file @
d2ccea05
...
...
@@ -95,7 +95,7 @@ _of_complete_cache_[foamToStarMesh]="-case -fileHandler -scale -time | -constant
_of_complete_cache_[foamToSurface]
=
"-case -fileHandler -scale -time | -constant -latestTime -listFunctionObjects -listRegisteredSwitches -listSwitches -listUnsetSwitches -newTimes -noFunctionObjects -noZero -tri -doc -doc-source -help -help-full"
_of_complete_cache_[foamToTetDualMesh]
=
"-case -decomposeParDict -fileHandler -hostRoots -listScalarBCs -listVectorBCs -roots -time | -constant -latestTime -listFunctionObjects -listRegisteredSwitches -listSwitches -listUnsetSwitches -noFunctionObjects -noZero -overwrite -parallel -doc -doc-source -help -help-full"
_of_complete_cache_[foamToVTK]
=
"-case -cellSet -cellZone -decomposeParDict -excludePatches -faceSet -fields -fileHandler -hostRoots -listScalarBCs -listVectorBCs -name -pointSet -region -roots -time | -allPatches -ascii -constant -finiteAreaFields -latestTime -listFunctionObjects -listRegisteredSwitches -listSwitches -listUnsetSwitches -nearCellValue -newTimes -noFaceZones -noFunctionObjects -noInternal -noLagrangian -noLinks -noPointValues -noZero -parallel -poly -surfaceFields -useTimeName -xml -doc -doc-source -help -help-full"
_of_complete_cache_[foamUpgradeCyclics]
=
"-case -decomposeParDict -fileHandler -hostRoots -listScalarBCs -listVectorBCs -region -roots -time | -constant -enableFunctionEntries -latestTime -listFunctionObjects -listRegisteredSwitches -listSwitches -listUnsetSwitches -newTimes -noFunctionObjects -noZero -parallel
-test
-doc -doc-source -help -help-full"
_of_complete_cache_[foamUpgradeCyclics]
=
"-case -decomposeParDict -fileHandler -hostRoots -listScalarBCs -listVectorBCs -region -roots -time | -constant
-dry-run
-enableFunctionEntries -latestTime -listFunctionObjects -listRegisteredSwitches -listSwitches -listUnsetSwitches -newTimes -noFunctionObjects -noZero -parallel -doc -doc-source -help -help-full"
_of_complete_cache_[foamyHexMesh]
=
"-case -decomposeParDict -fileHandler -hostRoots -listScalarBCs -listVectorBCs -roots | -checkGeometry -conformationOnly -listFunctionObjects -listRegisteredSwitches -listSwitches -listUnsetSwitches -noFunctionObjects -parallel -doc -doc-source -help -help-full"
_of_complete_cache_[foamyQuadMesh]
=
"-case -fileHandler -pointsFile | -listFunctionObjects -listRegisteredSwitches -listSwitches -listUnsetSwitches -noFunctionObjects -overwrite -doc -doc-source -help -help-full"
_of_complete_cache_[gambitToFoam]
=
"-case -fileHandler -scale | -noFunctionObjects -doc -doc-source -help -help-full"
...
...
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