This does not fix noise analysis with klu.

It does add missing { and } when event-driven instances are not present.
Without this change CKTop will always be called again directly in NOISEan even
if CKTop was previously called by EVTop. This matches the intended
behavior before #ifdef KLU was added.
This commit is contained in:
briantofleeds 2024-09-29 14:30:52 -07:00 committed by Holger Vogt
parent 5493862a1d
commit 5b3b48b913
1 changed files with 5 additions and 1 deletions

View File

@ -189,6 +189,7 @@ NOISEan(CKTcircuit* ckt, int restart)
EVTop_save(ckt, MIF_TRUE, 0.0); EVTop_save(ckt, MIF_TRUE, 0.0);
} }
else else
{ // start of no XSPICE event-driven instances
#endif #endif
#ifdef KLU #ifdef KLU
@ -216,10 +217,13 @@ NOISEan(CKTcircuit* ckt, int restart)
return(error); return(error);
} }
} }
else else {
fprintf(stdout, "\n Linear circuit, option noopac given: no OP analysis\n"); fprintf(stdout, "\n Linear circuit, option noopac given: no OP analysis\n");
}
#ifdef XSPICE #ifdef XSPICE
} // end of no XSPICE event-driven instances
/* gtri - add - wbk - 12/19/90 - Add IPC stuff */ /* gtri - add - wbk - 12/19/90 - Add IPC stuff */
/* Send the operating point results for Mspice compatibility */ /* Send the operating point results for Mspice compatibility */