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

Fixes Support Request #47: "XSpice memory usage (TRAN TSTART effect)".
This commit is contained in:
Giles Atkinson 2022-01-26 19:07:12 +00:00 committed by Holger Vogt
parent 6494befb2f
commit 16f586b65e
1 changed files with 8 additions and 1 deletions

View File

@ -164,7 +164,14 @@ void EVTaccept(
/* Reset the modified flag */
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 */
node_data->last_step[index] = node_data->tail[index];
} else {