Browse Source

inp2q.c, #19/23, rewrite, move code into the 'for' loop

pre-master-46
rlar 9 years ago
parent
commit
b85a07c62c
  1. 11
      src/spicelib/parser/inp2q.c

11
src/spicelib/parser/inp2q.c

@ -78,16 +78,13 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode)
current->error = INPgetMod(ckt, model, &thismodel, tab);
break;
}
if (i >= max_i)
break;
if (i >= max_i) {
LITERR ("could not find a valid modelname");
return;
}
INPtermInsert(ckt, &nname[i], tab, &node[i]);
}
if (!model) {
LITERR ("could not find a valid modelname");
return;
}
if (i == 3) {
/* 3-terminal device - substrate to ground */
node[3] = gnode;

Loading…
Cancel
Save