inpcom.c, multiplier 'm' in subcircuits: exclude all devices not supporting multiplier 'm'
This commit is contained in:
parent
31df5e4d36
commit
4bb355027a
|
|
@ -2723,9 +2723,6 @@ found_mult_param(int num_params, char *param_names[])
|
|||
/* If a subcircuit invocation (X-line) is found, which contains the
|
||||
multiplier parameter 'm', m is added to all lines inside
|
||||
the corresponding subcircuit except of some excluded in the code below
|
||||
(FIXME: It may be necessary to exclude more of them, at least
|
||||
for all devices that are not supporting the 'm' parameter).
|
||||
|
||||
Function is called from inp_fix_inst_calls_for_numparam() */
|
||||
|
||||
static int
|
||||
|
|
@ -2753,8 +2750,8 @@ inp_fix_subckt_multiplier(struct names *subckt_w_params, struct line *subckt_car
|
|||
card && !ciprefix(".ends", card->li_line);
|
||||
card = card->li_next) {
|
||||
char *curr_line = card->li_line;
|
||||
/* no 'm' for B, V, E, H or comment line */
|
||||
if (strchr("*bveh", curr_line[0]))
|
||||
/* no 'm' for comment line, B, V, E, H and some others that are not using 'm' in their model description */
|
||||
if (strchr("*bvehaknopstuwy", curr_line[0]))
|
||||
continue;
|
||||
/* no 'm' for model cards */
|
||||
if (ciprefix(".model", curr_line))
|
||||
|
|
|
|||
Loading…
Reference in New Issue