From 72620328a1af503af292c2ee00e78d5efaeee48c Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 1 Jun 2026 19:48:50 +0200 Subject: [PATCH] Excluded integration during self-heating as well. --- src/spicelib/devices/dio/dioload.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/spicelib/devices/dio/dioload.c b/src/spicelib/devices/dio/dioload.c index 97dade792..b4a9d49bd 100644 --- a/src/spicelib/devices/dio/dioload.c +++ b/src/spicelib/devices/dio/dioload.c @@ -692,14 +692,15 @@ next1: *(ckt->CKTstate0 + here->DIOsrcapCurrent); } } - } - if (selfheat) - { - error = NIintegrate(ckt, &gcTt, &ceqqth, model->DIOcth0, here->DIOqth); - if (error) return(error); - if (ckt->CKTmode & MODEINITTRAN) { - *(ckt->CKTstate1 + here->DIOcqth) = + + if (selfheat) + { + error = NIintegrate(ckt, &gcTt, &ceqqth, model->DIOcth0, here->DIOqth); + if (error) return(error); + if (ckt->CKTmode & MODEINITTRAN) { + *(ckt->CKTstate1 + here->DIOcqth) = *(ckt->CKTstate0 + here->DIOcqth); + } } } }