again
This commit is contained in:
parent
1f2c63233e
commit
4da7e9a88b
|
|
@ -30,9 +30,9 @@ SWtrunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
|
||||||
maxChange =
|
maxChange =
|
||||||
(ref - ckt->CKTstates[0][here->SWstate + 1]) * 0.75
|
(ref - ckt->CKTstates[0][here->SWstate + 1]) * 0.75
|
||||||
+ 0.05;
|
+ 0.05;
|
||||||
maxStep = maxChange / lastChange * ckt->CKTdeltaOld[0];
|
maxStep = maxChange / lastChange * ckt->CKTdeltaOld[0];
|
||||||
if (*timeStep > maxStep)
|
if (*timeStep > maxStep)
|
||||||
*timeStep = maxStep;
|
*timeStep = maxStep;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ref = model->SWvThreshold - model->SWvHysteresis;
|
ref = model->SWvThreshold - model->SWvHysteresis;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue