fix commit "noise analysis, bug fix, override ac magnitude of all vsrc/isrc devices"

This commit is contained in:
rlar 2015-03-22 20:22:01 +01:00
parent 64da5a99bf
commit e755b45281
2 changed files with 16 additions and 6 deletions

View File

@ -25,9 +25,14 @@ ISRCacLoad(GENmodel *inModel, CKTcircuit *ckt)
double acReal, acImag;
if ((ckt->CKTmode & MODEACNOISE) && ((GENinstance *) here == ckt->noise_input)) {
acReal = 1.0;
acImag = 0.0;
if (ckt->CKTmode & MODEACNOISE) {
if ((GENinstance *) here == ckt->noise_input) {
acReal = 1.0;
acImag = 0.0;
} else {
acReal = 0.0;
acImag = 0.0;
}
} else {
acReal = here->ISRCacReal;
acImag = here->ISRCacImag;

View File

@ -24,9 +24,14 @@ VSRCacLoad(GENmodel *inModel, CKTcircuit *ckt)
double acReal, acImag;
if ((ckt->CKTmode & MODEACNOISE) && ((GENinstance *) here == ckt->noise_input)) {
acReal = 1.0;
acImag = 0.0;
if (ckt->CKTmode & MODEACNOISE) {
if ((GENinstance *) here == ckt->noise_input) {
acReal = 1.0;
acImag = 0.0;
} else {
acReal = 0.0;
acImag = 0.0;
}
} else {
acReal = here->VSRCacReal;
acImag = here->VSRCacImag;