Enable parameter sweep for TRAN SENS

This commit is contained in:
Vadim Kuznetzov 2017-10-20 17:06:19 +03:00
parent 1fe9f370ea
commit c16dce9296
2 changed files with 4 additions and 1 deletions

View File

@ -187,6 +187,9 @@ void Xyce::createNetlist(QTextStream &stream, int , QStringList &simulations,
} else if (SwpSim.startsWith("SENS")&&(sim=="sens")) {
stream<<s;
hasParSweep = true;
} else if (SwpSim.startsWith("TSENS")&&(sim=="sens_tr")) {
stream<<s;
hasParSweep = true;
} else if (SwpSim.startsWith("SW")&&(sim=="dc")) {
for(Component *pc1 = Sch->DocComps.first(); pc1 != 0; pc1 = Sch->DocComps.next()) {
if ((pc1->Name==SwpSim)&&(pc1->Props.at(0)->Value.startsWith("DC"))) {

View File

@ -38,7 +38,7 @@ SpiceSENS_TR_Xyce::SpiceSENS_TR_Xyce()
tx = 0;
ty = y2+1;
Model = ".SENS_TR_XYCE";
Name = "SENS";
Name = "TSENS";
SpiceModel = ".SENS";
// The index of the first 4 properties must not changed. Used in recreate().