Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
91289a35
Commit
91289a35
authored
May 24, 2012
by
Thomas Witkowski
Browse files
Fixed partitioning issue with empty partitiones.
parent
5d0b11a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/MeshDistributor.cc
View file @
91289a35
...
...
@@ -1283,6 +1283,10 @@ namespace AMDiS {
return
;
}
TEST_EXIT_DBG
(
!
(
partitioner
->
getSendElements
().
size
()
==
mesh
->
getMacroElements
().
size
()
&&
partitioner
->
getRecvElements
().
size
()
==
0
))
(
"Partition is empty, should not happen!
\n
"
);
// === Create map that maps macro element indices to pointers to the ===
// === macro elements. ===
...
...
AMDiS/src/parallel/ZoltanPartitioner.cc
View file @
91289a35
...
...
@@ -97,6 +97,13 @@ namespace AMDiS {
recvElements
.
clear
();
sendElements
.
clear
();
int
createEmptyPartition
=
(
mesh
->
getMacroElements
().
size
()
==
nExportEls
&&
nImportEls
==
0
);
mpi
::
globalMax
(
createEmptyPartition
);
if
(
createEmptyPartition
>
0
)
err
=
ZOLTAN_FATAL
;
if
(
err
==
ZOLTAN_OK
&&
changes
!=
0
)
{
if
(
nImportEls
>
0
)
{
for
(
int
i
=
0
;
i
<
nImportEls
;
i
++
)
{
...
...
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