Browse Source

Avoid crashing during the Sensitivity Analysis in KLU, stating that it isn't supported

pre-master-46
Francesco Lannutti 10 years ago
committed by Holger Vogt
parent
commit
1099b5452e
  1. 14
      src/spicelib/analysis/cktsens.c

14
src/spicelib/analysis/cktsens.c

@ -62,6 +62,15 @@ static double inc_freq(double freq, int type, double step_size);
static int error; static int error;
int sens_sens(CKTcircuit *ckt, int restart) int sens_sens(CKTcircuit *ckt, int restart)
{ {
#ifdef KLU
if (ckt->CKTkluMODE)
{
fprintf (stderr, "\n\n\tThe Sensitivity Analysis is not supported in KLU environment\n\tPlease add '.options sparse' in you netlist\n\n\n") ;
return OK ;
} else {
#endif
SENS_AN *job = (SENS_AN *) ckt->CKTcurJob; SENS_AN *job = (SENS_AN *) ckt->CKTcurJob;
static int size; static int size;
@ -626,6 +635,11 @@ int sens_sens(CKTcircuit *ckt, int restart)
#endif #endif
return OK; return OK;
#ifdef KLU
}
#endif
} }
double double

Loading…
Cancel
Save