Increased verbose output from tension_model_utils.
authorW. Trevor King <wking@drexel.edu>
Tue, 24 Feb 2009 00:08:38 +0000 (19:08 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 24 Feb 2009 00:08:38 +0000 (19:08 -0500)
src/sawsim.nw

index e72da968b0cdbdae3cd46715e443db23f69ec665..9a4195152e1a5f59710b92c79da8185d6c06d01b 100644 (file)
@@ -3745,6 +3745,13 @@ int main(int argc, char **argv)
       if (F < 0 || F > Fmax) break;
       printf("%g\t%g\n", x, F);
     }
+    if (flags & VFLAG && i <= N) {
+      /* explain exit condition */
+      if (F < 0)
+        printf("Impossible force %g\n", F);
+      else if (F > Fmax)
+        printf("Reached large force limit %g > %g\n", F, Fmax);
+    }
   }
   params = pop(&tdata.group);
   if (model->destructor)