Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
91289a35
Commit
91289a35
authored
May 24, 2012
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed partitioning issue with empty partitiones.
parent
5d0b11a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
AMDiS/src/parallel/MeshDistributor.cc
AMDiS/src/parallel/MeshDistributor.cc
+4
-0
AMDiS/src/parallel/ZoltanPartitioner.cc
AMDiS/src/parallel/ZoltanPartitioner.cc
+7
-0
No files found.
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
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