Browse Source

inp2q.c, #4/23, transform boolean expression

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

7
src/spicelib/parser/inp2q.c

@ -133,9 +133,10 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode)
return; return;
} }
#ifdef ADMS #ifdef ADMS
if ((nodeflag > 4 && (thismodel->INPmodType != INPtypelook("hicum0")))
&& (nodeflag > 4 && (thismodel->INPmodType != INPtypelook("hicum2")))
&& (nodeflag > 4 && (thismodel->INPmodType != INPtypelook("bjt504t"))))
if (nodeflag > 4 &&
!(thismodel->INPmodType == INPtypelook("hicum0") ||
thismodel->INPmodType == INPtypelook("hicum2") ||
thismodel->INPmodType == INPtypelook("bjt504t")))
{ {
LITERR("Too much nodes for this model type"); LITERR("Too much nodes for this model type");
return; return;

Loading…
Cancel
Save