Skip to content

Commit

Permalink
NEM_SLICE: Clean up 1D decomp --handle edges correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Jul 24, 2024
1 parent 594ec93 commit bcf3aed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/seacas/applications/nem_slice/elb.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <string>
#include <vector>

#define ELB_VERSION "5.00"
#define ELB_VERSION "5.01"
#define UTIL_NAME "nem_slice"
#define ELB_FALSE 0
#define ELB_TRUE 1
Expand Down
6 changes: 6 additions & 0 deletions packages/seacas/applications/nem_slice/elb_loadbal.C
Original file line number Diff line number Diff line change
Expand Up @@ -1556,12 +1556,18 @@ namespace {
lb->bor_elems[procc].push_back(ecnt);

if (procl != procc) {
if (ecnt == 1) { // At left end...
lb->bor_elems[procl].push_back(ecnt-1);
}
lb->e_cmap_elems[procl].push_back(ecnt-1);
lb->e_cmap_sides[procl].push_back(2);
lb->e_cmap_procs[procl].push_back(procc);
lb->e_cmap_neigh[procl].push_back(ecnt);
}
if (procc != procr) {
if (ecnt == mesh->num_elems-2) { // At right end...
lb->bor_elems[procr].push_back(ecnt+1);
}
lb->e_cmap_elems[procr].push_back(ecnt+1);
lb->e_cmap_sides[procr].push_back(1);
lb->e_cmap_procs[procr].push_back(procc);
Expand Down

0 comments on commit bcf3aed

Please sign in to comment.