Skip to content

Commit

Permalink
Merge pull request #963 from ra3xdh/962_fix
Browse files Browse the repository at this point in the history
Fix Ngspice run in CLI mode
  • Loading branch information
ra3xdh authored Sep 27, 2024
2 parents 4fb0bbc + 2d1a2c2 commit 79127c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qucs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ int doNetlist(QString schematic, QString netlist)
int runNgspice(QString schematic, QString dataset)
{
QucsSettings.DefaultSimulator = spicecompat::simNgspice;
Module::registerModules();
Schematic *sch = openSchematic(schematic);
if (sch == NULL) {
return 1;
Expand All @@ -381,6 +382,7 @@ int runNgspice(QString schematic, QString dataset)
int runXyce(QString schematic, QString dataset)
{
QucsSettings.DefaultSimulator = spicecompat::simXyce;
Module::registerModules();
Schematic *sch = openSchematic(schematic);
if (sch == NULL) {
return 1;
Expand Down

0 comments on commit 79127c5

Please sign in to comment.