Fixed some more bugs. Now crack2D runs on multiple processors.
[charm.git] / examples / fem / crack2D / lst_NL.C
index 2a6047d70aedb2a0ca8f38339f5a52598c19342c..545b4595739a1234c1af65ab66e336a8a0024b88 100644 (file)
@@ -55,9 +55,7 @@ void
 lst_NL(GlobalData *gd)
 {
   int idx;
-  // skip over cohesive elements
-  for(idx=0; idx<gd->ne && gd->nnums[idx]<gd->numCLST; idx++);
-  for(; idx<gd->ne; idx++) {
+  for(idx=gd->svol; idx<gd->evol; idx++) {
     Element *v = &(gd->elements[idx]);
     Node *n[6];
     int k;