From e9e9e5d55e42e0a8c22bc3ec92e8c2f13199dc52 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 20 Apr 2017 17:40:37 +0200 Subject: [PATCH] inpcom.c, inp_chk_for_multi_in_vcvs(), #2/6, move code downwards --- src/frontend/inpcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 1669440bc..0a8d56b47 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1336,12 +1336,10 @@ inp_chk_for_multi_in_vcvs(struct line *c, int *line_number) m_instance = tprintf("%s %%vd[ %s ] %%vd( %s ) %s", ref_str, ctrl_nodes_str, out_str, ref_str); m_instance[0] = 'a'; - a_card = xx_new_line(NULL, m_instance, (*line_number)++, 0); m_model = tprintf(".model %s multi_input_pwl ( x = [%s %s] y = [%s %s] model = \"%s\" )", ref_str, xy_values1[0], xy_values2[0], xy_values1[1], xy_values2[1], fcn_name); - model_card = xx_new_line(NULL, m_model, (*line_number)++, 0); tfree(ref_str); tfree(out_str); @@ -1354,7 +1352,9 @@ inp_chk_for_multi_in_vcvs(struct line *c, int *line_number) *c->li_line = '*'; next_card = c->li_next; + a_card = xx_new_line(NULL, m_instance, (*line_number)++, 0); c->li_next = a_card; + model_card = xx_new_line(NULL, m_model, (*line_number)++, 0); a_card->li_next = model_card; model_card->li_next = next_card; // skip these two new cards