From e0d5d98b334a96e6285e5497b6300284ba14c5c4 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 30 May 2021 10:45:09 +0200 Subject: [PATCH] Just a reminder that truncation is currently diabled for CSW --- src/spicelib/devices/csw/cswload.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/spicelib/devices/csw/cswload.c b/src/spicelib/devices/csw/cswload.c index f77c3a43f..4d6516177 100644 --- a/src/spicelib/devices/csw/cswload.c +++ b/src/spicelib/devices/csw/cswload.c @@ -129,6 +129,10 @@ CSWload(GENmodel *inModel, CKTcircuit *ckt) ckt->CKTstate0[here->CSWswitchstate] = current_state; ckt->CKTstate1[here->CSWswitchstate] = previous_state; +// ckt->CKTstate0[here->CSWctrlvalue] = i_ctrl; + /* FIXME: without this statement truncation is not used, as with SW. + But test are needed to check if improvments are possible. */ + if (current_state == REALLY_ON || current_state == HYST_ON) g_now = model->CSWonConduct; else