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
1a056f935c
commit
22b5a859d0
|
|
@ -172,7 +172,11 @@ VSRCaccept(CKTcircuit *ckt, GENmodel *inModel)
|
|||
|
||||
period = end -
|
||||
here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||
time -=
|
||||
here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||
time -= period * floor(time / period);
|
||||
time +=
|
||||
here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||
} else {
|
||||
here->VSRCbreak_time = ckt->CKTfinalTime;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -318,6 +318,7 @@ VSRCload(GENmodel *inModel, CKTcircuit *ckt)
|
|||
|
||||
period = end_time -
|
||||
here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||
time -= here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||
time -= period * floor(time / period);
|
||||
time += here->VSRCcoeffs[here->VSRCrBreakpt];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue