Skip to content

Commit

Permalink
NEM_SLICE: Fix decomp of 3D bar/beam following 1D bar/beam fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Aug 19, 2024
1 parent 8b9f666 commit d9dea53
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
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.03 (2024/07/30)"
#define ELB_VERSION "5.04 (2024/08/19)"
#define UTIL_NAME "nem_slice"
#define ELB_FALSE 0
#define ELB_TRUE 1
Expand Down
30 changes: 16 additions & 14 deletions packages/seacas/applications/nem_slice/elb_loadbal.C
Original file line number Diff line number Diff line change
Expand Up @@ -1637,23 +1637,25 @@ namespace {

if (etype == BAR2 || etype == BAR3) {
size_t nhold = graph->sur_elem[side_nodes[0]].size();
for (size_t ncnt = 0; ncnt < nhold; ncnt++) {
hold_elem[ncnt] = graph->sur_elem[side_nodes[0]][ncnt];
}
if (nhold > 1) {
for (size_t ncnt = 0; ncnt < nhold; ncnt++) {
hold_elem[ncnt] = graph->sur_elem[side_nodes[0]][ncnt];
}

for (int ncnt = 0; ncnt < nnodes; ncnt++) {
/* Find elements connected to both node '0' and node 'ncnt+1' */
nelem = find_inter(Data(hold_elem), Data(graph->sur_elem[side_nodes[(ncnt + 1)]]),
nhold, graph->sur_elem[side_nodes[(ncnt + 1)]].size(),
Data(pt_list));
for (int ncnt = 0; ncnt < nnodes; ncnt++) {
/* Find elements connected to both node '0' and node 'ncnt+1' */
nelem = find_inter(Data(hold_elem), Data(graph->sur_elem[side_nodes[(ncnt + 1)]]),
nhold, graph->sur_elem[side_nodes[(ncnt + 1)]].size(),
Data(pt_list));

if (nelem < 2) {
break;
}
if (nelem < 2) {
break;
}

nhold = nelem;
for (int ncnt2 = 0; ncnt2 < nelem; ncnt2++) {
hold_elem[ncnt2] = hold_elem[pt_list[ncnt2]];
nhold = nelem;
for (int ncnt2 = 0; ncnt2 < nelem; ncnt2++) {
hold_elem[ncnt2] = hold_elem[pt_list[ncnt2]];
}
}
}
}
Expand Down

0 comments on commit d9dea53

Please sign in to comment.