swload.c: reinstate the truncation code from swtrunc.c

(was removed in a patch from 2001 04 25)
This commit is contained in:
h_vogt 2013-04-22 22:44:58 +02:00
parent c5c9b8d301
commit 1a3b74e9e7
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ SWload(GENmodel *inModel, CKTcircuit *ckt)
// After analyzing the transient code, it seems that this is not a problem because state updating
// occurs before the convergence loop in transient processing.
*(ckt->CKTstates[0] + here->SWstate) = current_state;
*(ckt->CKTstates[0] + here->SWstate + 1) = v_ctrl;
if ((current_state == REALLY_ON) || (current_state == HYST_ON))
g_now = model->SWonConduct;