partially fixed by79c69e0and9c75367. This also fixes Bug #468 - "Bugs in src/spicelib/devices/vsrc/vsrcacct.c for PWL source."
This commit is contained in:
parent
5114d6c2f4
commit
5f6a6a27d8
|
|
@ -172,7 +172,11 @@ VSRCaccept(CKTcircuit *ckt, GENmodel *inModel)
|
||||||
|
|
||||||
period = end -
|
period = end -
|
||||||
here->VSRCcoeffs[here->VSRCrBreakpt];
|
here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||||
|
time -=
|
||||||
|
here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||||
time -= period * floor(time / period);
|
time -= period * floor(time / period);
|
||||||
|
time +=
|
||||||
|
here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||||
} else {
|
} else {
|
||||||
here->VSRCbreak_time = ckt->CKTfinalTime;
|
here->VSRCbreak_time = ckt->CKTfinalTime;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -318,6 +318,7 @@ VSRCload(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
|
|
||||||
period = end_time -
|
period = end_time -
|
||||||
here->VSRCcoeffs[here->VSRCrBreakpt];
|
here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||||
|
time -= here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||||
time -= period * floor(time / period);
|
time -= period * floor(time / period);
|
||||||
time += here->VSRCcoeffs[here->VSRCrBreakpt];
|
time += here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue