From fc6455ca99eeb80c0632869dc5a2561e2bd30d3b Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 10 Aug 2015 17:41:38 +0200 Subject: [PATCH] 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 --- src/frontend/inp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 9faa3c4e4..9b055425a 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -1569,9 +1569,11 @@ inp_evaluate_temper(void) } 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 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; IFeval((IFparseTree *) d->pt, 1e-12, &result, NULL, NULL); d->wlend->wl_word = tprintf("%g", result);