Skip to content

Commit 538fb51

Browse files
authored
Merge pull request ra3xdh#1427 from tskaar/dev/ts/libcomp-xyce-ground-netlist
LibComp: replace 'gnd' nodes with '0' nodes
2 parents acbb9f6 + 889bfba commit 538fb51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qucs/components/libcomp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ QString LibComp::spice_netlist(spicecompat::SpiceDialect dialect /* = spicecompa
365365
{
366366
Q_UNUSED(dialect);
367367

368-
QString s = SpiceModel + Name + " 0 "; // connect ground of subckt to circuit ground
368+
QString s = SpiceModel + Name + " " + "0"; // connect ground of subckt to circuit ground
369369
for (Port *p1 : Ports)
370-
s += " "+p1->Connection->Name; // node names
370+
s += " " + spicecompat::normalize_node_name(p1->Connection->Name); // node names
371371
s += " " + createType();
372372

373373
// output user defined parameters

0 commit comments

Comments
 (0)