selfheating only with rth>0

This commit is contained in:
dwarning 2023-04-08 20:44:19 +02:00 committed by Holger Vogt
parent 2fff3e2bc0
commit 56b5041266
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ VBICsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
}
if(model->VBICselftGiven)
if(model->VBICselft == 1)
if((model->VBICselft == 1) && (model->VBICthermalResistGiven) && (model->VBICthermalResist > 0.0))
here->VBIC_selfheat = 1;
else
here->VBIC_selfheat = 0;