From b0f2ab8764e4be2711ac946f30f3e65a1674ce7d Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 18 Jun 2023 10:29:43 +0200 Subject: [PATCH] Fix bug 637 Prevent crash when external current source is used. --- src/spicelib/devices/isrc/isrctemp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spicelib/devices/isrc/isrctemp.c b/src/spicelib/devices/isrc/isrctemp.c index 207ed69a8..92f3e64a0 100644 --- a/src/spicelib/devices/isrc/isrctemp.c +++ b/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 */