projects
/
sawsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3425f4
)
Increased verbose output from tension_model_utils.
author
W. Trevor King
<wking@drexel.edu>
Tue, 24 Feb 2009 00:08:38 +0000
(19:08 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Tue, 24 Feb 2009 00:08:38 +0000
(19:08 -0500)
src/sawsim.nw
patch
|
blob
|
history
diff --git
a/src/sawsim.nw
b/src/sawsim.nw
index e72da968b0cdbdae3cd46715e443db23f69ec665..9a4195152e1a5f59710b92c79da8185d6c06d01b 100644
(file)
--- a/
src/sawsim.nw
+++ b/
src/sawsim.nw
@@
-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)