dtemp was not defaulted.

This commit is contained in:
pnenzi 2003-11-12 00:01:29 +00:00
parent 16e22904e0
commit 4a6cdce588
1 changed files with 7 additions and 2 deletions

View File

@ -132,8 +132,13 @@ BJTtemp(GENmodel *inModel, CKTcircuit *ckt)
here=here->BJTnextInstance) {
if (here->BJTowner != ARCHme) continue;
if(!here->BJTtempGiven) here->BJTtemp = ckt->CKTtemp + here->BJTdtemp;
vt = here->BJTtemp * CONSTKoverQ;
if(!here->BJTdtempGiven)
here->BJTdtemp = 0.0;
if(!here->BJTtempGiven)
here->BJTtemp = ckt->CKTtemp + here->BJTdtemp;
vt = here->BJTtemp * CONSTKoverQ;
fact2 = here->BJTtemp/REFTEMP;
egfet = 1.16-(7.02e-4*here->BJTtemp*here->BJTtemp)/
(here->BJTtemp+1108);