mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Quick fix for .FOUR simulation with Xyce; old circuits are operational
This commit is contained in:
parent
c9ffce91a7
commit
35b5cbc285
@ -1008,6 +1008,7 @@ void AbstractSpiceKernel::convertToQucsData(const QString &qucs_dataset)
|
||||
bool hasParSweep = false;
|
||||
bool hasDblParSweep = false;
|
||||
|
||||
QRegExp four_rx(".*\\.four[0-9]+$");
|
||||
QString full_outfile = workdir+QDir::separator()+ngspice_output_filename;
|
||||
if (ngspice_output_filename.endsWith("HB.FD.prn")) {
|
||||
parseHBOutput(full_outfile,sim_points,var_list,hasParSweep);
|
||||
@ -1017,7 +1018,8 @@ void AbstractSpiceKernel::convertToQucsData(const QString &qucs_dataset)
|
||||
+ "spice4qucs.hb.cir.res");
|
||||
parseResFile(res_file,swp_var,swp_var_val);
|
||||
}
|
||||
} else if (ngspice_output_filename.endsWith(".four")) {
|
||||
} else if (ngspice_output_filename.endsWith(".four") ||
|
||||
four_rx.exactMatch(ngspice_output_filename)) {
|
||||
isComplex=false;
|
||||
parseFourierOutput(full_outfile,sim_points,var_list);
|
||||
} else if (ngspice_output_filename.endsWith(".ngspice.sens.dc.prn")) {
|
||||
|
@ -166,7 +166,7 @@ void Xyce::createNetlist(QTextStream &stream, int , QStringList &simulations,
|
||||
if (pc1->Model==".FOURIER") {
|
||||
if (pc1->Props.at(0)->Value==pc->Name) {
|
||||
QString s1 = pc1->getSpiceNetlist(true);
|
||||
outputs.append("spice4qucs.tran.cir.four");
|
||||
outputs.append("spice4qucs.tran.cir.four0");
|
||||
stream<<s1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user