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

This commit is contained in:
Francesco Lannutti 2016-06-21 15:03:21 +02:00 committed by rlar
parent 5e657b5aa1
commit 4e42a93ba1
1 changed files with 14 additions and 0 deletions

View File

@ -62,6 +62,15 @@ static double inc_freq(double freq, int type, double step_size);
static int error;
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;
static int size;
@ -626,6 +635,11 @@ int sens_sens(CKTcircuit *ckt, int restart)
#endif
return OK;
#ifdef KLU
}
#endif
}
double