From ef37e92338ae1cec810124c46f56bbc76c944f1f Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 10 Mar 2017 18:34:55 +0100 Subject: [PATCH] inp2q.c, #13/23, move code down --- src/spicelib/parser/inp2q.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spicelib/parser/inp2q.c b/src/spicelib/parser/inp2q.c index 1b573c254..9afa79e12 100644 --- a/src/spicelib/parser/inp2q.c +++ b/src/spicelib/parser/inp2q.c @@ -87,7 +87,6 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode) current->error = INPgetMod(ckt, model, &thismodel, tab); #ifdef ADMS } else { - nodeflag = 5; /* now specify a 5 node device */ nname[i] = model; INPtermInsert(ckt, &nname[i], tab, &node[i]); i = 5; @@ -121,6 +120,9 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode) #endif } + if (i == 5) + nodeflag = 5; + #ifdef TRACE printf("INP2Q: Looking up model\n"); #endif