From 5b3b48b913d520e171353b2db7d33eb0d34a9db6 Mon Sep 17 00:00:00 2001 From: briantofleeds Date: Sun, 29 Sep 2024 14:30:52 -0700 Subject: [PATCH] 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. --- src/spicelib/analysis/noisean.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/spicelib/analysis/noisean.c b/src/spicelib/analysis/noisean.c index 9c22da199..99e0a393b 100644 --- a/src/spicelib/analysis/noisean.c +++ b/src/spicelib/analysis/noisean.c @@ -189,6 +189,7 @@ NOISEan(CKTcircuit* ckt, int restart) EVTop_save(ckt, MIF_TRUE, 0.0); } else + { // start of no XSPICE event-driven instances #endif #ifdef KLU @@ -216,10 +217,13 @@ NOISEan(CKTcircuit* ckt, int restart) return(error); } } - else + else { fprintf(stdout, "\n Linear circuit, option noopac given: no OP analysis\n"); + } #ifdef XSPICE + } // end of no XSPICE event-driven instances + /* gtri - add - wbk - 12/19/90 - Add IPC stuff */ /* Send the operating point results for Mspice compatibility */