From d3b7619754ab248e200910bc10e0c9c659eff396 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 22 Aug 2018 22:36:35 +0200 Subject: [PATCH] add a flag timezero to trnoise_state falg is true as long as time = 0. Allows to detect the change from time == 0 to time > 0 only then the 1/f data may be created anew (e.g. due to multiple 'run' commands --- src/include/ngspice/1-f-code.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/ngspice/1-f-code.h b/src/include/ngspice/1-f-code.h index bc45d616c..27af6e929 100644 --- a/src/include/ngspice/1-f-code.h +++ b/src/include/ngspice/1-f-code.h @@ -17,6 +17,8 @@ struct trnoise_state double *oneof; size_t oneof_length; + bool timezero; + double RTScapTime, RTSemTime; bool RTS; };