Browse Source

"dtemp" was not defaulted.

pre-master-46
pnenzi 23 years ago
parent
commit
5b65ca2fa3
  1. 9
      src/spicelib/devices/bjt2/bjt2temp.c

9
src/spicelib/devices/bjt2/bjt2temp.c

@ -134,8 +134,13 @@ BJT2temp(GENmodel *inModel, CKTcircuit *ckt)
here=here->BJT2nextInstance) {
if (here->BJT2owner != ARCHme) continue;
if(!here->BJT2tempGiven) here->BJT2temp = ckt->CKTtemp + here->BJT2dtemp;
vt = here->BJT2temp * CONSTKoverQ;
if(!here->BJT2dtempGiven)
here->BJT2dtemp = 0.0;
if(!here->BJT2tempGiven)
here->BJT2temp = ckt->CKTtemp + here->BJT2dtemp;
vt = here->BJT2temp * CONSTKoverQ;
fact2 = here->BJT2temp/REFTEMP;
egfet = 1.16-(7.02e-4*here->BJT2temp*here->BJT2temp)/
(here->BJT2temp+1108);

Loading…
Cancel
Save