Skip to content

Commit b7157ce

Browse files
committed
Fix issue with side calculation.
1 parent 788b02d commit b7157ce

File tree

2 files changed

+95
-68
lines changed

2 files changed

+95
-68
lines changed

src/Infrastructure/Mesh/src/ESMCI_MeshDual.C

+13-3
Original file line numberDiff line numberDiff line change
@@ -1381,10 +1381,11 @@ const MeshObjTopo *ElemType2Topo(int pdim, int sdim, int etype) {
13811381
bool has_right=false;
13821382
bool has_left=false;
13831383
for (int i=1; i < tmp_pntss.size()-1; i++) {
1384-
if (tmp_pntss[i].side=PntS::Right) has_right=true;
1385-
if (tmp_pntss[i].side==PntS::Left) has_left=true;
1384+
if (tmp_pntss[i].side == PntS::Right) has_right=true;
1385+
if (tmp_pntss[i].side == PntS::Left) has_left=true;
13861386
}
13871387

1388+
13881389
// If they are all on the right, then just fill and leave
13891390
if (!has_left) {
13901391

@@ -1425,7 +1426,15 @@ const MeshObjTopo *ElemType2Topo(int pdim, int sdim, int etype) {
14251426
ids.push_back(tmp_mdss[i].id);
14261427
}
14271428

1428-
}
1429+
}
1430+
1431+
// DEBUG OUTPUT
1432+
// std::cout << "End ids=";
1433+
//for (UInt id: ids) {
1434+
// std::cout << " " << id;
1435+
// }
1436+
//std::cout <<"\n";
1437+
14291438
}
14301439

14311440

@@ -1646,6 +1655,7 @@ const MeshObjTopo *ElemType2Topo(int pdim, int sdim, int etype) {
16461655

16471656
// Using the angle sorted tmp_mdss points make a loop and fill ids with it
16481657
make_id_loop_from_angle_ordered_pnts(mesh, tmp_mdss, tmp_pntss, ids);
1658+
16491659
}
16501660

16511661

0 commit comments

Comments
 (0)