BJT prevent crash in qs model for insane parameter entry

This commit is contained in:
dwarning 2020-09-09 09:52:23 +02:00 committed by Holger Vogt
parent c8fa54ce1c
commit 8a7fce8676
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ BJTsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
if(!model->BJTemissionCoeffSGiven) {
model->BJTemissionCoeffS = 1.0;
}
if(!model->BJTintCollResistGiven) {
if((!model->BJTintCollResistGiven)
||(model->BJTintCollResist<0.01)) {
model->BJTintCollResist = 0.01;
}
if(!model->BJTepiSatVoltageGiven) {