diff --git a/ChangeLog b/ChangeLog index 772d55af2..c9aa4ab3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 11-01-02 Holger Vogt * spiceif.c: recall yesterday's change due to errors, if reset was given before + install again, but only for CKTtime > 0 11-01-01 Holger Vogt * breakp.c: update to multiple conditionals with '=' in stop command diff --git a/src/frontend/spiceif.c b/src/frontend/spiceif.c index 3cb459fad..7a0add8a8 100644 --- a/src/frontend/spiceif.c +++ b/src/frontend/spiceif.c @@ -931,12 +931,12 @@ if_setparam(CKTcircuit *ckt, char **name, char *param, struct dvec *val, int do_ /* Call to CKTtemp(ckt) will be invoked here only by 'altermod' commands, to set internal model parameters pParam of each instance for immediate use, - otherwise e.g. model->BSIM3vth0 will be set, - but not pParam of any BSIM3 instance. + otherwise e.g. model->BSIM3vth0 will be set, but not pParam of any BSIM3 instance. + Call only if CKTtime > 0 to avoid conflict with previous 'reset' command. May contain side effects because call is abundant. h_vogt 110101 */ -// if (do_model) -// CKTtemp(ckt); + if ((do_model) && (ckt->CKTtime > 0)) + CKTtemp(ckt); } static struct variable *