inpcom.c, recursive call to inp_fix_inst_calls_for_numparam()

allows position independent placement of parameter 'm' in
subcircuits, if required by parameter 'm' in any X line.
Will overwrite any alraedy existing 'm=value' in the respective
instance line.
This commit is contained in:
h_vogt 2017-03-12 11:59:40 +01:00 committed by rlar
parent 86eea1c672
commit 31df5e4d36
1 changed files with 3 additions and 1 deletions

View File

@ -2797,8 +2797,10 @@ inp_fix_inst_calls_for_numparam(struct names *subckt_w_params, struct line *deck
if (p) {
int num_subckt_params = inp_get_params(p->li_line, subckt_param_names, subckt_param_values);
if (!found_mult_param(num_subckt_params, subckt_param_names))
if (!found_mult_param(num_subckt_params, subckt_param_names)) {
inp_fix_subckt_multiplier(subckt_w_params, p, num_subckt_params, subckt_param_names, subckt_param_values);
inp_fix_inst_calls_for_numparam(subckt_w_params, deck);
}
for (i = 0; i < num_subckt_params; i++) {
tfree(subckt_param_names[i]);