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
4b859dcc
Commit
4b859dcc
authored
Jul 29, 2008
by
Mark Olesen
Browse files
argList.C added Mattijs' check on distributed roots (slaves only)
parent
f1d7955e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/global/argList/argList.C
View file @
4b859dcc
...
...
@@ -337,23 +337,21 @@ Foam::argList::argList
Switch
distributed
(
false
);
if
(
decompositionDict
.
found
(
"distributed"
))
if
(
decompositionDict
.
readIfPresent
(
"distributed"
,
distributed
)
&&
distributed
)
{
decompositionDict
.
lookup
(
"
distributed"
)
>>
distributed
;
decompositionDict
.
lookup
(
"
roots"
)
>>
roots
;
if
(
distributed
)
if
(
roots
.
size
()
!=
Pstream
::
nProcs
()
-
1
)
{
decompositionDict
.
lookup
(
"roots"
)
>>
roots
;
if
(
roots
.
size
()
!=
Pstream
::
nProcs
())
{
FatalError
<<
"number of entries in "
<<
"decompositionDict::roots"
<<
" is not equal to the number of processors "
<<
Pstream
::
nProcs
()
<<
exit
(
FatalError
);
}
FatalError
<<
"number of entries in decompositionDict::roots"
<<
" is not equal to the number of slaves "
<<
Pstream
::
nProcs
()
-
1
<<
exit
(
FatalError
);
}
}
...
...
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