fix commit "noise analysis, bug fix, override ac magnitude of all vsrc/isrc devices"
This commit is contained in:
parent
64da5a99bf
commit
e755b45281
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue