Skip to content

Commit

Permalink
Fix devices translation
Browse files Browse the repository at this point in the history
The device conversion was partially broken while removing the
HICUM stuff in commit bfc7200.
  • Loading branch information
in3otd committed Feb 26, 2016
1 parent 0e279af commit 747a580
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion qucs-core/src/converter/check_spice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,11 @@ static void spice_adjust_device (struct definition_t * def,
def->pairs = netlist_append_pairs (def->pairs, p);
// adjust type of device
free (def->type);

def->type = strdup (tran->trans_type);
// append "Type" property
if (tran->trans_type_prop != NULL) {
spice_set_property_string (def, "Type", tran->trans_type_prop);
}
break;
}
}
Expand Down Expand Up @@ -752,6 +756,15 @@ node_translations[] = {
{ 1, 2, -1 }
},
{ "Iac", 0,
{ 2, 1, -1 },
{ 1, 2, -1 }
},
{ "Idc", 0,
{ 2, 1, -1 },
{ 1, 2, -1 }
},
{ "VCCS", 0,
{ 3, 1, 2, 4, -1 },
{ 1, 2, 3, 4, -1 }
},
{ "VCVS", 0,
Expand Down

0 comments on commit 747a580

Please sign in to comment.