added BYPASS #ifdef
This commit is contained in:
parent
38b30ef0b8
commit
e32b7009ca
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue