--- /dev/null
+$ bin/sawsim -s folded,hooke,1 -N1 -s unfolded,null -k 'folded,unfolded,bell,{,1}' -q folded
+#Force (N) Initial state Final state
+sawsim: build/k_model.c:174: bell_k: Assertion `p->knot > 0' failed.
+Aborted
--- /dev/null
+Author: W. Trevor King <wking@drexel.edu>
+
+
+Content-type: text/plain
+
+
+Date: Thu, 13 Aug 2009 11:47:58 +0000
+
--- /dev/null
+Fixed. Now you get:
+
+$ bin/sawsim -s folded,hooke,1 -N1 -s unfolded,null -k 'folded,unfolded,bell,{,1}' -q folded
+Error: unparsable empty string '' for string_create_bell_param_t
+sawsim: build/k_model.c:141: safe_strtod: Assertion `endp != s' failed.
+Aborted
--- /dev/null
+Author: W. Trevor King <wking@drexel.edu>
+
+
+Content-type: text/plain
+
+
+Date: Thu, 13 Aug 2009 11:52:12 +0000
+
+
+In-reply-to: 0346329e-7fa7-48d1-a2d9-a510d340edb2
+
--- /dev/null
+creator: W. Trevor King <wking@drexel.edu>
+
+
+reporter: W. Trevor King <wking@drexel.edu>
+
+
+severity: minor
+
+
+status: open
+
+
+summary: safe_strto*() should check for blank strings
+
+
+time: Thu, 13 Aug 2009 11:47:22 +0000
+
fprintf(stderr, "Error: unparsable '%s' while parsing '%s' for %s\n",
endp, s, description);
assert(1==0); //strlen(endp) == 0);
+ } if (endp == s) {
+ fprintf(stderr, "Error: unparsable empty string '%s' for %s\n",
+ s, description);
+ assert(endp != s);
} else if (errno == ERANGE) {
fprintf(stderr, "Error: '%s' out of range for %s\n", s, description);
assert(errno != ERANGE);
fprintf(stderr, "Error: unparsable '%s' while parsing '%s' for %s\n",
endp, s, description);
assert(1==0); //strlen(endp) == 0);
+ } if (endp == s) {
+ fprintf(stderr, "Error: unparsable empty string '%s' for %s\n",
+ s, description);
+ assert(endp != s);
} else if (errno == ERANGE) {
fprintf(stderr, "Error: '%s' out of range for %s\n", s, description);
assert(errno != ERANGE);