diff --git a/src/spicelib/devices/isrc/isrcacld.c b/src/spicelib/devices/isrc/isrcacld.c index e7e8a5611..48fa57402 100644 --- a/src/spicelib/devices/isrc/isrcacld.c +++ b/src/spicelib/devices/isrc/isrcacld.c @@ -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; diff --git a/src/spicelib/devices/vsrc/vsrcacld.c b/src/spicelib/devices/vsrc/vsrcacld.c index 0ff2ee8f6..fdd45cf3e 100644 --- a/src/spicelib/devices/vsrc/vsrcacld.c +++ b/src/spicelib/devices/vsrc/vsrcacld.c @@ -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;