fifth node binding only for ADMS defined

This commit is contained in:
dwarning 2007-02-10 16:13:22 +00:00
parent b5ce155b97
commit c0458610e3
1 changed files with 3 additions and 1 deletions

View File

@ -102,7 +102,6 @@ void INP2Q(void *ckt, INPtables * tab, card * current, void *gnode)
if (thismodel != NULL) {
if((thismodel->INPmodType != INPtypelook("BJT"))
&& (thismodel->INPmodType != INPtypelook("BJT2"))
&& (thismodel->INPmodType != INPtypelook("VBIC"))
#ifdef CIDER
&& (thismodel->INPmodType != INPtypelook("NBJT"))
&& (thismodel->INPmodType != INPtypelook("NBJT2"))
@ -111,6 +110,7 @@ void INP2Q(void *ckt, INPtables * tab, card * current, void *gnode)
&& (thismodel->INPmodType != INPtypelook("hicum0"))
&& (thismodel->INPmodType != INPtypelook("hicum2"))
&& (thismodel->INPmodType != INPtypelook("mextram"))
&& (thismodel->INPmodType != INPtypelook("vbic"))
#endif
) {
LITERR("incorrect model type")
@ -146,6 +146,7 @@ void INP2Q(void *ckt, INPtables * tab, card * current, void *gnode)
IFC(bindNode, (ckt, fast, 3, node3));
IFC(bindNode, (ckt, fast, 4, node4));
#ifdef ADMS
if ((type == INPtypelook ("hicum0")) ||
(type == INPtypelook ("hicum2")) ||
(type == INPtypelook ("mextram")) )
@ -156,6 +157,7 @@ void INP2Q(void *ckt, INPtables * tab, card * current, void *gnode)
((GENinstance *) fast)->GENnode5 = -1;
}
}
#endif
PARSECALL((&line, ckt, type, fast, &leadval, &waslead, tab));
if (waslead) {
#ifdef CIDER