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
0a6d5525
Commit
0a6d5525
authored
Jan 04, 2011
by
Mark Olesen
Browse files
STYLE: remove '-roots' option too with noParallel
parent
fd7bf0fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/global/argList/argList.C
View file @
0a6d5525
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 1991-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -58,10 +58,10 @@ Foam::argList::initValidTables::initValidTables()
validParOptions
.
set
(
"parallel"
,
""
);
argList
::
addOption
(
"roots"
,
"(dir1 .. dir
n
)"
,
"roots"
,
"(dir1 .. dir
N
)"
,
"slave root directories for distributed running"
);
validParOptions
.
set
(
"roots"
,
"(dir1 .. dir
n
)"
);
validParOptions
.
set
(
"roots"
,
"(dir1 .. dir
N
)"
);
Pstream
::
addValidParOptions
(
validParOptions
);
}
...
...
@@ -138,8 +138,8 @@ void Foam::argList::noBanner()
void
Foam
::
argList
::
noParallel
()
{
optionUsage
.
erase
(
"parallel"
);
validOptions
.
erase
(
"parallel
"
);
removeOption
(
"parallel"
);
removeOption
(
"roots
"
);
validParOptions
.
clear
();
}
...
...
@@ -537,10 +537,10 @@ Foam::argList::argList
if
(
options_
.
found
(
"roots"
))
{
source
=
"'-roots' option"
;
IStringStream
str
(
options_
[
"roots"
]);
str
>>
roots
;
dictNProcs
=
roots
.
size
()
+
1
;
source
=
"roots-command-line"
;
}
else
{
...
...
@@ -593,7 +593,7 @@ Foam::argList::argList
{
forAll
(
roots
,
i
)
{
roots
[
i
]
=
roots
[
i
].
expand
();
roots
[
i
].
expand
();
}
if
(
roots
.
size
()
!=
Pstream
::
nProcs
()
-
1
)
...
...
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