inpcom.c, bug fix, #293 Bug in .option rseries = <value> with parallel inductors

reported by João Alberto and Andy Fierman in
   http://sourceforge.net/p/ngspice/bugs/293/
This commit is contained in:
rlar 2014-10-30 18:53:21 +01:00
parent 0ebc8c9ba5
commit 1f9cf0b6b5
1 changed files with 2 additions and 2 deletions

View File

@ -5967,8 +5967,8 @@ inp_add_series_resistor(struct line *deck)
char *node2 = gettok(&cut_line);
/* new L line and new R line */
char *newL = tprintf("%s %s %s_intern__ %s", title_tok, node1, node2, cut_line);
char *newR = tprintf("R%s_intern__ %s_intern__ %s %s", title_tok, node2, node2, rval);
char *newL = tprintf("%s %s %s_intern__ %s", title_tok, node1, title_tok, cut_line);
char *newR = tprintf("R%s_intern__ %s_intern__ %s %s", title_tok, title_tok, node2, rval);
struct line *d;