Browse Source

Fix bug 637

Prevent crash when external current source is used.
pre-master-46
Holger Vogt 3 years ago
parent
commit
b0f2ab8764
  1. 4
      src/spicelib/devices/isrc/isrctemp.c

4
src/spicelib/devices/isrc/isrctemp.c

@ -42,7 +42,9 @@ ISRCtemp(GENmodel *inModel, CKTcircuit *ckt)
here->ISRCname);
}
else if (here->ISRCdcGiven && here->ISRCfuncTGiven
&& here->ISRCfunctionType != TRNOISE && here->ISRCfunctionType != TRRANDOM) {
&& here->ISRCfunctionType != TRNOISE
&& here->ISRCfunctionType != TRRANDOM
&& here->ISRCfunctionType != EXTERNAL) {
/* DC value and transient time 0 values given */
double time0value;
/* determine transient time 0 value */

Loading…
Cancel
Save