Browse Source

Fix Bug #698 -

"Initial transient solution assumes voltage source=0 even if it is not."
Cause was another error in ad5bb9eb8d, fix for Bug #607, which uncovered
an earlier latent bug.
pre-master-46
Giles Atkinson 1 year ago
committed by Holger Vogt
parent
commit
e3f7cf3e0a
  1. 3
      src/spicelib/devices/vsrc/vsrcload.c

3
src/spicelib/devices/vsrc/vsrcload.c

@ -320,9 +320,8 @@ VSRCload(GENmodel *inModel, CKTcircuit *ckt)
double end_time, itime; double end_time, itime;
time -= here->VSRCrdelay; time -= here->VSRCrdelay;
if (time < here->VSRCcoeffs[0]) {
if (time <= here->VSRCcoeffs[0]) {
value = here->VSRCcoeffs[1]; value = here->VSRCcoeffs[1];
value = value;
break; break;
} }

Loading…
Cancel
Save