invoke in_parse_temper_trees() and inp_evaluate_temper() unconditionally

This commit is contained in:
rlar 2017-03-26 19:09:17 +02:00
parent e35429a222
commit 2c35eebb0b
3 changed files with 9 additions and 16 deletions

View File

@ -745,12 +745,10 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
fclose(fdo);
}
if (expr_w_temper) {
/* Now the circuit is defined, so generate the parse trees */
inp_parse_temper_trees(ft_curckt);
/* Get the actual data for model and device instance parameters */
inp_evaluate_temper(ft_curckt);
}
/* Now the circuit is defined, so generate the parse trees */
inp_parse_temper_trees(ft_curckt);
/* Get the actual data for model and device instance parameters */
inp_evaluate_temper(ft_curckt);
/* linked list dbs is used to store the "save" or .save data (defined in breakp2.c),
(When controls are executed later on, also stores TRACE, IPLOT, and STOP data) */

View File

@ -116,8 +116,7 @@ CKTdoJob(CKTcircuit *ckt, int reset, TSKtask *task)
/* call altermod and alter on device and model parameters assembled in
devtlist and modtlist (if using temper) because we have a new temperature */
if (expr_w_temper)
inp_evaluate_temper(ft_curckt);
inp_evaluate_temper(ft_curckt);
error = 0;

View File

@ -144,8 +144,7 @@ DCtrCurv(CKTcircuit *ckt, int restart)
job->TRCVvSave[i] = ckt->CKTtemp; /* Saves the old circuit temperature */
job->TRCVvType[i] = TEMP_CODE; /* Set the sweep type code */
ckt->CKTtemp = job->TRCVvStart[i] + CONSTCtoK; /* Set the new circuit temp */
if (expr_w_temper)
inp_evaluate_temper(ft_curckt);
inp_evaluate_temper(ft_curckt);
CKTtemp(ckt);
goto found;
}
@ -277,8 +276,7 @@ DCtrCurv(CKTcircuit *ckt, int restart)
job->TRCVvStart[i];
} else if (job->TRCVvType[i] == TEMP_CODE) {
ckt->CKTtemp = job->TRCVvStart[i] + CONSTCtoK;
if (expr_w_temper)
inp_evaluate_temper(ft_curckt);
inp_evaluate_temper(ft_curckt);
CKTtemp(ckt);
} else if (job->TRCVvType[i] == rcode) {
((RESinstance *)(job->TRCVvElt[i]))->RESresist =
@ -471,8 +469,7 @@ DCtrCurv(CKTcircuit *ckt, int restart)
DEVices[rcode]->DEVload(job->TRCVvElt[i]->GENmodPtr, ckt);
} else if (job->TRCVvType[i] == TEMP_CODE) { /* temperature */
ckt->CKTtemp += job->TRCVvStep[i];
if (expr_w_temper)
inp_evaluate_temper(ft_curckt);
inp_evaluate_temper(ft_curckt);
CKTtemp(ckt);
}
@ -509,8 +506,7 @@ DCtrCurv(CKTcircuit *ckt, int restart)
DEVices[rcode]->DEVload(job->TRCVvElt[i]->GENmodPtr, ckt);
} else if (job->TRCVvType[i] == TEMP_CODE) {
ckt->CKTtemp = job->TRCVvSave[i];
if (expr_w_temper)
inp_evaluate_temper(ft_curckt);
inp_evaluate_temper(ft_curckt);
CKTtemp(ckt);
}