Noise simulation is buggy when using the KLU solver. Thus for now it is disabled.

Use 'option sparse' instead.
This commit is contained in:
Holger Vogt 2023-11-06 15:03:09 +01:00
parent 4e1452cdb7
commit d27b888f13
1 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,14 @@ NOISEan(CKTcircuit* ckt, int restart)
/* gtri - end - wbk */
#endif
#ifdef KLU
if (ckt->CKTkluMODE) {
fprintf(stderr, "Error: Noise simulation is not (yet) supported with 'option KLU'.\n");
fprintf(stderr, " Use 'option sparse' instead.\n");
return(E_UNSUPP);
}
#endif
NOISEAN* job = (NOISEAN*)ckt->CKTcurJob;
GENinstance* inst = CKTfndDev(ckt, job->input);
bool frequequal = AlmostEqualUlps(job->NstartFreq, job->NstopFreq, 3);