Browse Source

Fix error in previous fix for Bug #607 -

"DC Source with Pulse stops pulsing half way through simulation".
Non-periodic PWL waveforms reverted to zero on termination.
pre-master-46
Giles Atkinson 3 years ago
committed by Holger Vogt
parent
commit
1a97e1097f
  1. 2
      src/spicelib/devices/vsrc/vsrcload.c

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

@ -320,6 +320,8 @@ VSRCload(GENmodel *inModel, CKTcircuit *ckt)
here->VSRCcoeffs[here->VSRCrBreakpt]; here->VSRCcoeffs[here->VSRCrBreakpt];
time -= period * floor(time / period); time -= period * floor(time / period);
} else { } else {
value =
here->VSRCcoeffs[here->VSRCfunctionOrder - 1];
break; break;
} }
} }

Loading…
Cancel
Save