Browse Source

Respect the "tstart" parameter when saving event node data (XSPICE).

Fixes Support Request #47: "XSpice memory usage (TRAN TSTART effect)".
pre-master-46
Giles Atkinson 4 years ago
committed by Holger Vogt
parent
commit
16f586b65e
  1. 9
      src/xspice/evt/evtaccept.c

9
src/xspice/evt/evtaccept.c

@ -164,7 +164,14 @@ void EVTaccept(
/* Reset the modified flag */ /* Reset the modified flag */
node_data->modified[index] = MIF_FALSE; node_data->modified[index] = MIF_FALSE;
if (node_table[index]->save) {
/* Optionally store node values for later examination.
* The test of CKTtime here is copied from dctran.c.
* CKTinitTime is from the tstart parameter of the "tran"
* command or card.
*/
if (node_table[index]->save && ckt->CKTtime >= ckt->CKTinitTime &&
(ckt->CKTtime > 0 || !(ckt->CKTmode & MODEUIC))) {
/* Update last_step for this index */ /* Update last_step for this index */
node_data->last_step[index] = node_data->tail[index]; node_data->last_step[index] = node_data->tail[index];
} else { } else {

Loading…
Cancel
Save