correct indentation

This commit is contained in:
dwarning 2021-04-15 21:01:15 +02:00 committed by Holger Vogt
parent 741cab390f
commit 2b2e40793e
1 changed files with 17 additions and 17 deletions

View File

@ -199,25 +199,25 @@ void DIOtempUpdate(DIOmodel *inModel, DIOinstance *here, double Temp, CKTcircuit
if (cbv < here->DIOtSatCur * tBreakdownVoltage/vt) { if (cbv < here->DIOtSatCur * tBreakdownVoltage/vt) {
cbv=here->DIOtSatCur * tBreakdownVoltage/vt; cbv=here->DIOtSatCur * tBreakdownVoltage/vt;
#ifdef TRACE #ifdef TRACE
SPfrontEnd->IFerrorf (ERR_WARNING, "%s: breakdown current increased to %g to resolve", here->DIOname, cbv); SPfrontEnd->IFerrorf (ERR_WARNING, "%s: breakdown current increased to %g to resolve", here->DIOname, cbv);
SPfrontEnd->IFerrorf (ERR_WARNING, SPfrontEnd->IFerrorf (ERR_WARNING,
"incompatibility with specified saturation current"); "incompatibility with specified saturation current");
#endif #endif
xbv=tBreakdownVoltage; xbv=tBreakdownVoltage;
} else { } else {
tol=ckt->CKTreltol*cbv; tol=ckt->CKTreltol*cbv;
xbv=tBreakdownVoltage-model->DIObrkdEmissionCoeff*vt*log(1+cbv/ xbv=tBreakdownVoltage-model->DIObrkdEmissionCoeff*vt*log(1+cbv/
(here->DIOtSatCur)); (here->DIOtSatCur));
iter=0; iter=0;
for(iter=0 ; iter < 25 ; iter++) { for(iter=0 ; iter < 25 ; iter++) {
xbv=tBreakdownVoltage-model->DIObrkdEmissionCoeff*vt*log(cbv/ xbv=tBreakdownVoltage-model->DIObrkdEmissionCoeff*vt*log(cbv/
(here->DIOtSatCur)+1-xbv/vt); (here->DIOtSatCur)+1-xbv/vt);
xcbv=here->DIOtSatCur * xcbv=here->DIOtSatCur *
(exp((tBreakdownVoltage-xbv)/(model->DIObrkdEmissionCoeff*vt))-1+xbv/vt); (exp((tBreakdownVoltage-xbv)/(model->DIObrkdEmissionCoeff*vt))-1+xbv/vt);
if (fabs(xcbv-cbv) <= tol) goto matched; if (fabs(xcbv-cbv) <= tol) goto matched;
} }
#ifdef TRACE #ifdef TRACE
SPfrontEnd->IFerrorf (ERR_WARNING, "%s: unable to match forward and reverse diode regions: bv = %g, ibv = %g", here->DIOname, xbv, xcbv); SPfrontEnd->IFerrorf (ERR_WARNING, "%s: unable to match forward and reverse diode regions: bv = %g, ibv = %g", here->DIOname, xbv, xcbv);
#endif #endif
} }
matched: matched: