bugfix: collapse the correct nodes if RB is zero or not given

This commit is contained in:
Holger Vogt 2018-04-28 23:55:55 +02:00 committed by rlar
parent 2474c28a54
commit a0867ff1a3
1 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ VDMOSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt,
}
}
else {
here->VDIOposPrimeNode = here->VDMOSdNode;
here->VDIOposPrimeNode = here->VDMOSsNode;
}
@ -329,7 +329,7 @@ VDMOSunsetup(GENmodel *inModel, CKTcircuit *ckt)
here->VDMOSgNodePrime = 0;
if (here->VDIOposPrimeNode > 0
&& here->VDIOposPrimeNode != here->VDMOSdNode)
&& here->VDIOposPrimeNode != here->VDMOSsNode)
CKTdltNNum(ckt, here->VDIOposPrimeNode);
here->VDIOposPrimeNode = 0;
}