Improve on commit d6aa22e5 from 09.09.2020
Warning message only when 'set ngdebug' and instance or model line vectors read in do not have enclosing parens. Both vectors with or without enclosing parens are allowed.
This commit is contained in:
parent
cb9c7a6f2c
commit
77c898577e
|
|
@ -51,8 +51,8 @@ INPgetValue(CKTcircuit *ckt, char **line, int type, INPtables *tab)
|
|||
list[temp.v.numValue - 1] = tmp;
|
||||
tmp = INPevaluate(line, &error, 1);
|
||||
}
|
||||
if (error && !eq(*line, "") && !prefix(")", *line)) {
|
||||
fprintf(stderr, "\nWarning: Could not read parameter from \n%s\nat\n", compline);
|
||||
if (error && ft_ngdebug && !eq(*line, "") && !prefix(")", *line)) {
|
||||
fprintf(stderr, "\nWarning: Reading a vector without limiting parens may be dangerous\n%s\nat\n", compline);
|
||||
fprintf(stderr, "%*s%s\n", *line - compline," ", *line);
|
||||
}
|
||||
temp.v.vec.rVec = list;
|
||||
|
|
@ -74,8 +74,8 @@ INPgetValue(CKTcircuit *ckt, char **line, int type, INPtables *tab)
|
|||
ilist[temp.v.numValue - 1] = (int) floor(0.5 + tmp);
|
||||
tmp = INPevaluate(line, &error, 1);
|
||||
}
|
||||
if (error && !eq(*line, "") && !prefix(")", *line)) {
|
||||
fprintf(stderr, "\nWarning: Could not read parameter from \n%s\nat\n", compline);
|
||||
if (error && ft_ngdebug && !eq(*line, "") && !prefix(")", *line)) {
|
||||
fprintf(stderr, "\nWarning: Reading a vector without limiting parens may be dangerous\n%s\nat\n", compline);
|
||||
fprintf(stderr, "%*s%s\n", *line - compline, " ", *line);
|
||||
}
|
||||
temp.v.vec.iVec = ilist;
|
||||
|
|
|
|||
Loading…
Reference in New Issue