From b356b0001496cb3a64d076566fb2ef8a77e21b5a Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 17 Apr 2020 22:39:09 +0200 Subject: [PATCH] Fixes bugs 476, 486: Reset code model init flag, required when any run is called a second time. --- src/xspice/evt/evtsetup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xspice/evt/evtsetup.c b/src/xspice/evt/evtsetup.c index 4414b66bc..880fd382c 100644 --- a/src/xspice/evt/evtsetup.c +++ b/src/xspice/evt/evtsetup.c @@ -531,6 +531,9 @@ static int EVTsetup_load_ptrs( /* Get the MIFinstance pointer */ fast = ckt->evt->info.inst_table[i]->inst_ptr; + /* Reset init flag, required when any run is called a second time */ + fast->initialized = FALSE; + /* Loop through all connections */ num_conn = fast->num_conn; for(j = 0; j < num_conn; j++) {