From 56b5041266e37fb2e0a67495e1e3b6db2822fbbf Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 8 Apr 2023 20:44:19 +0200 Subject: [PATCH] selfheating only with rth>0 --- src/spicelib/devices/vbic/vbicsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/devices/vbic/vbicsetup.c b/src/spicelib/devices/vbic/vbicsetup.c index c82f36871..f40a59988 100644 --- a/src/spicelib/devices/vbic/vbicsetup.c +++ b/src/spicelib/devices/vbic/vbicsetup.c @@ -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;