Browse Source

added BYPASS #ifdef

pre-master-46
pnenzi 23 years ago
parent
commit
e32b7009ca
  1. 4
      src/spicelib/devices/bjt2/bjt2load.c
  2. 4
      src/spicelib/devices/bsim1/b1ld.c

4
src/spicelib/devices/bjt2/bjt2load.c

@ -331,7 +331,7 @@ BJT2load(GENmodel *inModel, CKTcircuit *ckt)
cbhat= *(ckt->CKTstate0 + here->BJT2cb)+ *(ckt->CKTstate0 +
here->BJT2gpi)*delvbe+ *(ckt->CKTstate0 + here->BJT2gmu)*
delvbc;
#ifndef NOBYPASS
/*
* bypass if solution has not changed
*/
@ -375,7 +375,7 @@ BJT2load(GENmodel *inModel, CKTcircuit *ckt)
cdsub = *(ckt->CKTstate0 + here->BJT2cdsub);
goto load;
}
#endif /*NOBYPASS*/
/*
* limit nonlinear branch voltages
*/

4
src/spicelib/devices/bsim1/b1ld.c

@ -119,7 +119,9 @@ B1load(GENmodel *inModel, CKTcircuit *ckt)
double vt0 = 0.0;
double args[8];
int ByPass = 0;
#ifndef NOBYPASS
double tempv = 0.0;
#endif /*NOBYPASS*/
int error = 0;
double m; /* parallel multiplier */
@ -275,6 +277,7 @@ B1load(GENmodel *inModel, CKTcircuit *ckt)
*(ckt->CKTstate0 + here->B1gbd) * delvbd +
*(ckt->CKTstate0 + here->B1gbs) * delvbs ;
#ifndef NOBYPASS
/* now lets see if we can bypass (ugh) */
/* following should be one big if connected by && all over
@ -338,6 +341,7 @@ B1load(GENmodel *inModel, CKTcircuit *ckt)
goto line850;
}
}
#endif /*NOBYPASS*/
von = model->B1type * here->B1von;
if(*(ckt->CKTstate0 + here->B1vds) >=0) {

Loading…
Cancel
Save