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
482a1b08
Commit
482a1b08
authored
Feb 14, 2019
by
mattijs
Committed by
Andrew Heather
Feb 14, 2019
Browse files
ENH: scotchDecomp: check validity of processorWeights. Fixes
#1207
.
parent
28335215
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.C
View file @
482a1b08
...
...
@@ -718,6 +718,15 @@ Foam::label Foam::ptscotchDecomp::decompose
<<
processorWeights
<<
endl
;
}
if
(
processorWeights
.
size
()
!=
nDomains_
)
{
FatalIOErrorInFunction
(
coeffsDict_
)
<<
"processorWeights not the same size"
<<
" as the wanted number of domains "
<<
nDomains_
<<
exit
(
FatalIOError
);
}
check
(
SCOTCH_archCmpltw
...
...
src/parallel/decompose/scotchDecomp/scotchDecomp.C
View file @
482a1b08
...
...
@@ -349,6 +349,14 @@ Foam::label Foam::scotchDecomp::decomposeSerial
Info
<<
"scotchDecomp : Using procesor weights "
<<
processorWeights
<<
endl
;
}
if
(
processorWeights
.
size
()
!=
nDomains_
)
{
FatalIOErrorInFunction
(
coeffsDict_
)
<<
"processorWeights not the same size"
<<
" as the wanted number of domains "
<<
nDomains_
<<
exit
(
FatalIOError
);
}
check
(
SCOTCH_archCmpltw
...
...
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