inp2q.c, #10/23, use i to prepare for a loop
This commit is contained in:
parent
a21a2fd1b0
commit
c5ce68728f
|
|
@ -69,6 +69,7 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode)
|
||||||
INPtermInsert(ckt, &nname[i], tab, &node[i]);
|
INPtermInsert(ckt, &nname[i], tab, &node[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i = 3;
|
||||||
INPgetTok(&line, &model, 1);
|
INPgetTok(&line, &model, 1);
|
||||||
|
|
||||||
thismodel = NULL;
|
thismodel = NULL;
|
||||||
|
|
@ -79,8 +80,9 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode)
|
||||||
INPinsert(&model, tab);
|
INPinsert(&model, tab);
|
||||||
current->error = INPgetMod(ckt, model, &thismodel, tab);
|
current->error = INPgetMod(ckt, model, &thismodel, tab);
|
||||||
} else {
|
} else {
|
||||||
nname[3] = model;
|
nname[i] = model;
|
||||||
INPtermInsert(ckt, &nname[3], tab, &node[3]);
|
INPtermInsert(ckt, &nname[i], tab, &node[i]);
|
||||||
|
i = 4;
|
||||||
INPgetTok(&line, &model, 1);
|
INPgetTok(&line, &model, 1);
|
||||||
if (INPlookMod(model)) {
|
if (INPlookMod(model)) {
|
||||||
/* 4-terminal device - special case with tnodeout flag not handled */
|
/* 4-terminal device - special case with tnodeout flag not handled */
|
||||||
|
|
@ -99,8 +101,9 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nodeflag = 5; /* now specify a 5 node device */
|
nodeflag = 5; /* now specify a 5 node device */
|
||||||
nname[4] = model;
|
nname[i] = model;
|
||||||
INPtermInsert(ckt, &nname[4], tab, &node[4]);
|
INPtermInsert(ckt, &nname[i], tab, &node[i]);
|
||||||
|
i = 5;
|
||||||
INPgetTok(&line, &model, 1);
|
INPgetTok(&line, &model, 1);
|
||||||
INPinsert(&model, tab);
|
INPinsert(&model, tab);
|
||||||
current->error = INPgetMod(ckt, model, &thismodel, tab);
|
current->error = INPgetMod(ckt, model, &thismodel, tab);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue