Fixed some more bugs. Now crack2D runs on multiple processors.
[charm.git] / examples / fem / crack2D / lst_coh2.C
index 73f55ea3190beb90a11da81c5ecde41ffab9372a..752ad9b81d68400502a5ff732a5940516cebcd9f 100644 (file)
@@ -29,7 +29,7 @@ void
 lst_coh2(GlobalData *gd) 
 {
   int idx;
-  for(idx=0; idx<gd->ne && gd->enums[idx]<gd->numCLST; idx++) {
+  for(idx=gd->scoh; idx<gd->ecoh; idx++) {
     Element *coh = &(gd->elements[idx]);
     Node *n[6];
     int k;