Browse Source

diode cbv only needed for tracing - prevent compiler warning

pre-master-46
dwarning 5 years ago
committed by Holger Vogt
parent
commit
4e86cfa352
  1. 2
      src/spicelib/devices/dio/diotemp.c

2
src/spicelib/devices/dio/diotemp.c

@ -197,8 +197,8 @@ void DIOtempUpdate(DIOmodel *inModel, DIOinstance *here, double Temp, CKTcircuit
cbv = here->DIOm * model->DIObreakdownCurrent * here->DIOarea;
}
if (cbv < here->DIOtSatCur * tBreakdownVoltage/vt) {
cbv=here->DIOtSatCur * tBreakdownVoltage/vt;
#ifdef TRACE
cbv=here->DIOtSatCur * tBreakdownVoltage/vt;
SPfrontEnd->IFerrorf (ERR_WARNING, "%s: breakdown current increased to %g to resolve", here->DIOname, cbv);
SPfrontEnd->IFerrorf (ERR_WARNING,
"incompatibility with specified saturation current");

Loading…
Cancel
Save