Browse Source

inp.c, bug fix, `temper' in a model parameter, missing INPretrieve() invocation

The model name needs to be transformed into a `IFuid'
  before it can be searched for with `findModel()'

see tests/regression/temper/temper-1.cir
pre-master-46
rlar 11 years ago
parent
commit
fc6455ca99
  1. 4
      src/frontend/inp.c

4
src/frontend/inp.c

@ -1569,9 +1569,11 @@ inp_evaluate_temper(void)
} }
for(d = modtlist; d; d = d->next) { for(d = modtlist; d; d = d->next) {
char *name = d->wl->wl_word;
INPretrieve(&name, ft_curckt->ci_symtab);
/* only evaluate models which have been entered into the /* only evaluate models which have been entered into the
hash table ckt->MODnameHash */ hash table ckt->MODnameHash */
if (ft_sim->findModel (ft_curckt->ci_ckt, d->wl->wl_word) == NULL)
if (ft_sim->findModel (ft_curckt->ci_ckt, name) == NULL)
continue; continue;
IFeval((IFparseTree *) d->pt, 1e-12, &result, NULL, NULL); IFeval((IFparseTree *) d->pt, 1e-12, &result, NULL, NULL);
d->wlend->wl_word = tprintf("%g", result); d->wlend->wl_word = tprintf("%g", result);

Loading…
Cancel
Save