call to CKTtemp only for CKTtime>0

This commit is contained in:
h_vogt 2011-01-02 14:15:42 +00:00
parent 76fca91dcb
commit 7903411b68
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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 *