Fix bug 637

Prevent crash when external current source is used.
This commit is contained in:
Holger Vogt 2023-06-18 10:29:43 +02:00
parent 90d8f7f34f
commit b0f2ab8764
1 changed files with 3 additions and 1 deletions

View File

@ -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 */